Boost logo

Boost :

Subject: Re: [boost] [flat_set] When to sort?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-04-08 01:31:48


On 04/07/2017 05:38 PM, Oswin Krause via Boost wrote:
> On 2017-04-08 00:28, Ion Gaztañaga via Boost wrote:
>> class flat_multimap/multiset
>> {
>> sequence_type extract_sequence();
>> void adopt_sequence(sequence_type &&seq);
>> void adopt_sequence(ordered_range_t, sequence_type &&seq);
>> };
>> Let's see if they are useful. Any feedback welcome.
> The returned sequence should be a r value reference to reduce costs of
> extract, modify, adopt patterns.

  Returning by value is correct, because it
is not not safe to modify the internal sequence
in place. The performance difference should
be insignificant, since it moves instead of copying.

In Christ,
Steven Watanabe

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