Subject: Re: [boost] [containers] Are there flat_map/set and stable_vector proposals at work?
From: Nevin Liber (nevin_at_[hidden])
Date: 2013-10-25 13:58:45
On 24 October 2013 04:16, Rob Stewart <robertstewart_at_[hidden]> wrote:
> On Oct 23, 2013, at 11:57 AM, Klaim - Joël Lamotte <mjklaim_at_[hidden]>
> > On Wed, Oct 23, 2013 at 5:07 PM, TONGARI J <tongari95_at_[hidden]> wrote:
> >> I wonder if we can choose the underlying container for flat_xxx, for
> example, use deque instead of vector.
> >> Or would it be better to make them as adaptors?
> If one reserves enough space up front, there's benefit in vector. If
> allocating on demand, deque can be better.
Well, if you are allocating on demand, xxx (possibly with a custom
allocator) may be better than flat_xxx...
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk