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

Appends to a `dst` string given a format string, and zero or more additional arguments, returning `&ast;dst` as a convenience for chaining purposes&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;format&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename&period;&period;&period; Args&gt;
std::string&
StrAppendFormat(
    std::string* dst,
    xref:absl/FormatSpec.adoc[FormatSpec&lt;Args&period;&period;&period;&gt;] const& format,
    Args const&&period;&period;&period; args);
----

== Description

Appends nothing in case of error (but possibly alters its capacity)&period;

Example&colon;

std&colon;&colon;string orig(&quot;For example PI is approximately &quot;)&semi; std&colon;&colon;cout &lt;&lt; StrAppendFormat(&amp;orig, &quot;%12&period;6f&quot;, 3&period;14)&semi;

== Return Value

A reference to `&ast;dst`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dst*
| The string to append to&period;
| *format*
| The format string&period;
| *args*
| The arguments substituted into the format string&period;
|===


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