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

Joins the elements of an initializer list using a custom formatter&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename Formatter&gt;
requires !std&colon;&colon;is&lowbar;convertible&lowbar;v&lt;T, absl&colon;&colon;string&lowbar;view&gt;
std::string
StrJoin(
    std::initializer&lowbar;list&lt;T&gt; il,
    std::string&lowbar;view separator,
    Formatter&& fmt);
----

== Return Value

The joined string&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *il*
| The initializer list of elements to join&period;
| *separator*
| The separator placed between joined elements&period;
| *fmt*
| The formatter used to convert each element to a string&period;
|===


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