Boost logo

Boost :

Subject: Re: [boost] [move] [range] move algorithm (was: interest: the pass-by-value...)
From: Eric Niebler (eniebler_at_[hidden])
Date: 2014-02-19 15:21:54


On 02/19/2014 10:54 AM, Ion Gaztañaga wrote:
> El 18/02/2014 19:21, Adam Wulkiewicz escribió:
>> I'll wait for the feedback from the rest of the community. Ion are you
>> ok with this?
>
> A forward move iterator is very useful when inserting values in
> containers. The forward property is used to know how many elements are
> in the range. After that, each element is only moved once. I see no
> problem with this approach.

That's a very good example. Thanks. I need to think about whether that
use case justifies the danger.

Eric


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