Thread View: comp.std.c++
1 messages
1 total messages
Started by Kenneth Coleman
Wed, 13 Mar 1996 04:15
STL vector copy ctor/assigment & reserve()
Author: Kenneth Coleman
Date: Wed, 13 Mar 1996 04:15
Date: Wed, 13 Mar 1996 04:15
21 lines
1579 bytes
1579 bytes
I don't know if this is on purpose or not, but neither the copy
constructor nor the assignment operator appears to take into account
the fact that the function reserve() may have been called on the copy
source. It basically makes the size of the vector into the number of
elements in the range [start, finish).
Is this on purpose, or is it a bug? I can't find any mention of this
particular "feature" in the documentation I have, or in the working
paper.
Thanks for any help you can give me!
- Ken.
kcoleman@cybercom.net
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads