[#absl-c_copy-07] = xref:absl.adoc[absl]::c_copy :relfileprefix: ../ :mrdocs: `c_copy` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::copy()` function to copy a container's elements into an iterator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename InputSequence, typename OutputIterator> constexpr /* implementation-defined */ xref:absl/c_copy-0b.adoc[c_copy]( InputSequence const& input, OutputIterator&& output); ---- [.small]#xref:absl/c_copy-0b.adoc[_» more..._]# Copies elements from `input` to `output`. `absl::c_copy(input, output)` is equivalent to `std::copy(std::begin(input), std::end(input), std::begin(output))`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename InputSequence, typename OutputRange> constexpr /* implementation-defined */ xref:absl/c_copy-03.adoc[c_copy]( InputSequence const& input, OutputRange&& output); ---- [.small]#xref:absl/c_copy-03.adoc[_» more..._]# == Return Value * An iterator to the end of the copied range in the output. * This overload returns no value; the results are written into `output`. == Parameters [cols="1,4"] |=== | Name| Description | *input* | The container whose elements to copy. | *output* | The output iterator receiving the copied elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#