|
Boost : |
Subject: Re: [boost] [container] moving a pre-built vector into a flat_set
From: Sam Kellett (samkellett_at_[hidden])
Date: 2015-09-16 15:44:23
On 16 September 2015 at 17:46, Ion Gaztañaga <igaztanaga_at_[hidden]> wrote:
> On 16/09/2015 15:23, Thorsten Ottosen wrote:
>
>
>> Well, almost.
>>
>> IMO, we need three things to make it perfect:
>>
>> A. flat_set/map should have an additional template argument specifying
>> the internal vector type (it can default to the current choice).
>>
>> B. You should be able to move the whole container, as suggested.
>>
>> C. The constructor should contain an assertion with a call to is_sorted()
>>
>> kind regards
>>
>> -Thorsten
>>
>
> Seems like a cool feature for several users. Create a ticket and I'll try
> to put it in the to-do list.
>
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?
cheers
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk