Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

swap_vector

0 views
Skip to first unread message

Douglas Gilbert

unread,
Mar 16, 2002, 5:33:28 AM3/16/02
to
I have be toying with the idea of implementing a variant
of std::vector<T> that uses swap(T&) rather than copy
construction during internal re-allocations. Finally
hacked up a version of it based on STLport's
std::vector implementation. The idea and an implementation
are discussed here:

http://www.torque.net/sg/p/swap_vector.html

Surely this has been proposed before and has some
serious design flaws. If not, enjoy.

Doug Gilbert


[ Send an empty e-mail to c++-...@netlab.cs.rpi.edu for info ]
[ about comp.lang.c++.moderated. First time posters: do this! ]

0 new messages