Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template move_backward

boost::move_backward

Synopsis

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


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

Description

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

Requires: result shall not be in the range (f,l].

Returns: result - (l - f).

Complexity: Exactly l - f move assignments.


PrevUpHomeNext