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

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;reverse()` function to reverse a container&apos;s elements and write them to an iterator range&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C,
    typename OutputIterator&gt;
constexpr
OutputIterator
c&lowbar;reverse&lowbar;copy(
    C const& sequence,
    OutputIterator result);
----

== Return Value

An iterator to the end of the written range in the output&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sequence*
| The container whose elements to reverse&period;
| *result*
| The output iterator receiving the reversed elements&period;
|===


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