Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template move

boost::move

Synopsis

// In header: <boost/move/algo/move.hpp>


template<typename I, typename O> O move(I f, I l, O result);

Description

Effects: Moves elements in the range [f,l) into the range [result,result + (l - f)) starting from f and proceeding to l. For each non-negative integer n < (l-f), performs *(result + n) = boost::move (*(f + n)).

Returns: result + (l - f).

Requires: result shall not be in the range [f,l).

Complexity: Exactly l - f move assignments.


PrevUpHomeNext