This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Which copies?In my opinion, you cannot *always* consider growing 1-item-at-a-time only
because ::operator new throws. As I already told you, from the point of view
of the user, that knows nothing about memory and so on, the vector is growing slowly and since you are catching the exceptions he cannot know why.
Hmmm. The user may also start wondering why the vector is performing so many copies.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |