absl::c_copy_backward

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

Synopsis

Declared in <absl/algorithm/container.h>

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

Return Value

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

Parameters

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