-
November 24th, 2003, 06:28 PM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|