[#absl-c_copy-07]
= xref:absl.adoc[absl]::c&lowbar;copy
:relfileprefix: ../
:mrdocs:

`c&lowbar;copy` overloads

== Synopses

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;copy()` function to copy a container&apos;s elements into an iterator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename InputSequence,
    typename OutputIterator&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
xref:absl/c_copy-0b.adoc[c&lowbar;copy](
    InputSequence const& input,
    OutputIterator&& output);
----

[.small]#xref:absl/c_copy-0b.adoc[_» more&period;&period;&period;_]#

Copies elements from `input` to `output`&period; `absl&colon;&colon;c&lowbar;copy(input, output)` is equivalent to &grave;std&colon;&colon;copy(std&colon;&colon;begin(input), std&colon;&colon;end(input), std&colon;&colon;begin(output))&grave;&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename InputSequence,
    typename OutputRange&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
xref:absl/c_copy-03.adoc[c&lowbar;copy](
    InputSequence const& input,
    OutputRange&& output);
----

[.small]#xref:absl/c_copy-03.adoc[_» more&period;&period;&period;_]#

== Return Value

* An iterator to the end of the copied range in the output&period;
* This overload returns no value&semi; the results are written into `output`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *input*
| The container whose elements to copy&period;
| *output*
| The output iterator receiving the copied elements&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
