Boost logo

Boost :

From: Bill Seymour (bsey_at_[hidden])
Date: 2001-02-19 12:31:53


Craig Hicks wrote:
>
> I found to my dismay that std::vector always initialized
> all the elements on resize(). This turned out to be a big
> computation penalty.
>

You might want to take a look at Josuttis' array.hpp at
http://www.boost.org/libs/array/index.htm.

--Bill Seymour


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk