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

Name

Description

src

The container whose elements to copy.

dest

An iterator past the end of the destination range.

Created with MrDocs