8 Apr
2017
8 Apr
'17
1:31 a.m.
AMDG 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