absl::c_copy

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

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename InputSequence,
    typename OutputIterator>
constexpr
/* implementation-defined */
c_copy(
    InputSequence const& input,
    OutputIterator&& output);

Return Value

An iterator to the end of the copied range in the output.

Parameters

NameDescription
inputThe container whose elements to copy.
outputThe output iterator receiving the copied elements.