[#absl-c_replace]
= xref:absl.adoc[absl]::c&lowbar;replace
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;replace()` function to replace a container&apos;s elements of some value with a new value&period; The container is modified in place&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Sequence,
    typename T&gt;
constexpr
void
c&lowbar;replace(
    Sequence& sequence,
    T const& old&lowbar;value,
    T const& new&lowbar;value);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sequence*
| The container to modify&period;
| *old&lowbar;value*
| The value to be replaced&period;
| *new&lowbar;value*
| The value to substitute for `old&lowbar;value`&period;
|===


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