CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 280

Threaded View

  1. #11
    Join Date
    Apr 1999
    Posts
    27,449
    Originally posted by gstercken
    Set aside the readability of the code: What you have implemented here is a linked list, not a vector.
    Good catch. It is a linked list and not a "drop-in" for vector, especially if you rely on vector's contiguous storage requirements (which linked lists do not have).

    However, don't be surprised if the version of vector<> that has the resize call comes close, if not beat the posted linked-list version.

    Regards,

    Paul McKenzie
    Last edited by Paul McKenzie; November 24th, 2003 at 06:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured