Boost logo

Boost :

Subject: Re: [boost] [review] The review of Boost.DoubleEnded starts today: September 21 - September 30
From: Soul Studios (matt_at_[hidden])
Date: 2017-10-04 21:47:55

> My biggest peeve is std::vector. I absolutely hate that it can ever
> allocate new storage on its own.
> In my preferred STL2 design, a vector would only ever occupy its
> capacity which is given to it at the time of construction. It cannot
> change its capacity at all. You the programmer can, of course, create a
> new vector of larger capacity and have all the contents from the old
> vector moved/copied into the new vector.

How is this not avoided using reserve()?

Boost list run by bdawes at, gregod at, cpdaniel at, john at