absl::c_move_backward

Container-based version of the <algorithm> std::move_backward() function to move a container's elements into an iterator in reverse order.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename BidirectionalIterator>
constexpr
BidirectionalIterator
c_move_backward(
    C&& src,
    BidirectionalIterator dest);

Return Value

An iterator to the beginning of the moved range in the destination.

Parameters

NameDescription
srcThe container whose elements to move.
destAn iterator past the end of the destination range.