On Tue, Apr 06, 2004 at 09:03:51PM -0500, Jon Berndt wrote: > I'm not positive, but it seems (roughly) like a vector push_back() operation > causes the d'tor to be called after the first element is stored. To me, this
Yes, if capacity() changes on a resizing operation (like push_back()), the elements need to be moved to a new location, like a realloc() would do in C. This will happen every so often, but so that on average, push_back() finishes in constant time. If you know already on construction time how large your vector will be, you should always call reserve(). HTH -Gerhard -- Gerhard Wesp o o Tel.: +41 (0) 43 5347636 Bachtobelstrasse 56 | http://www.cosy.sbg.ac.at/~gwesp/ CH-8045 Zuerich \_/ See homepage for email address! _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
