[#absl-Substitute-03]
= xref:absl.adoc[absl]::Substitute
:relfileprefix: ../
:mrdocs:

`Substitute` overloads

== Synopses

Declared in `&lt;absl&sol;strings&sol;substitute&period;h&gt;`

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-009.adoc[Substitute](std::string&lowbar;view format);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-0d8.adoc[Substitute](char const* format);
----

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

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-0f9.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-09.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0);
----

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

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-012.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-0dc.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1);
----

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

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-0cb.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-06b8.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2);
----

[.small]#xref:absl/Substitute-06b8.adoc[_» more&period;&period;&period;_]#

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-01f.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3);
----

[.small]#xref:absl/Substitute-01f.adoc[_» more&period;&period;&period;_]#

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-055.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3);
----

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

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-06b3.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4);
----

[.small]#xref:absl/Substitute-06b3.adoc[_» more&period;&period;&period;_]#

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-05c.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4);
----

[.small]#xref:absl/Substitute-05c.adoc[_» more&period;&period;&period;_]#

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-0819.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-0e.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5);
----

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

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-0fe.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-02.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6);
----

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

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-081d.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6,
    &sol;&ast; implementation-defined &ast;&sol; const& a7);
----

[.small]#xref:absl/Substitute-081d.adoc[_» more&period;&period;&period;_]#

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-0a.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6,
    &sol;&ast; implementation-defined &ast;&sol; const& a7);
----

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

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-0ce.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6,
    &sol;&ast; implementation-defined &ast;&sol; const& a7,
    &sol;&ast; implementation-defined &ast;&sol; const& a8);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-00d.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6,
    &sol;&ast; implementation-defined &ast;&sol; const& a7,
    &sol;&ast; implementation-defined &ast;&sol; const& a8);
----

[.small]#xref:absl/Substitute-00d.adoc[_» more&period;&period;&period;_]#

Substitutes variables into `format` and returns the result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::string
xref:absl/Substitute-07.adoc[Substitute](
    std::string&lowbar;view format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6,
    &sol;&ast; implementation-defined &ast;&sol; const& a7,
    &sol;&ast; implementation-defined &ast;&sol; const& a8,
    &sol;&ast; implementation-defined &ast;&sol; const& a9);
----

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

Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/Substitute-084.adoc[Substitute](
    char const* format,
    &sol;&ast; implementation-defined &ast;&sol; const& a0,
    &sol;&ast; implementation-defined &ast;&sol; const& a1,
    &sol;&ast; implementation-defined &ast;&sol; const& a2,
    &sol;&ast; implementation-defined &ast;&sol; const& a3,
    &sol;&ast; implementation-defined &ast;&sol; const& a4,
    &sol;&ast; implementation-defined &ast;&sol; const& a5,
    &sol;&ast; implementation-defined &ast;&sol; const& a6,
    &sol;&ast; implementation-defined &ast;&sol; const& a7,
    &sol;&ast; implementation-defined &ast;&sol; const& a8,
    &sol;&ast; implementation-defined &ast;&sol; const& a9);
----

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

== Return Value

The formatted string&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *format*
| The format string with `$0`&hyphen;`$9` placeholders&period;
| *a0*
| Substitution argument for `$0`&period;
| *a1*
| Substitution argument for `$1`&period;
| *a2*
| Substitution argument for `$2`&period;
| *a3*
| Substitution argument for `$3`&period;
| *a4*
| Substitution argument for `$4`&period;
| *a5*
| Substitution argument for `$5`&period;
| *a6*
| Substitution argument for `$6`&period;
| *a7*
| Substitution argument for `$7`&period;
| *a8*
| Substitution argument for `$8`&period;
| *a9*
| Substitution argument for `$9`&period;
|===


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