Boost logo

Boost :

Subject: Re: [boost] [container] moving a pre-built vector into a flat_set
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2015-09-16 15:52:58


On 16/09/2015 21:44, Sam Kellett wrote:

> also i see that the container used by flat_set is boost::container::vector,
> is this for encapsulation or is there advantages of
> boost::container::vector over std::vector in this capacity?

boost::container::vector has some new functions (undocumented, as they
are not ready to be public) to improve performance: merge, merge_unique,
insert_ordered_at.

Note that boost::container::vector implements many C++11 features in
C++03 compilers. Without C++11, flat_xxx would be broken.

Best,

Ion


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