[#util-Join-07]
= xref:util.adoc[util]::Join
:relfileprefix: ../
:mrdocs:

`Join` overloads

== Synopses

Declared in `&lt;util&sol;string&period;h&gt;`

Join all container items using separator, without transforming them&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C,
    typename S&gt;
auto
xref:util/Join-01e.adoc[Join](
    C const& container,
    S const& separator);
----

[.small]#xref:util/Join-01e.adoc[_» more&period;&period;&period;_]#

Join all container items&period; Typically used to concatenate strings but accepts containers with elements of any type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C,
    typename S,
    typename UnaryOp&gt;
auto
xref:util/Join-012.adoc[Join](
    C const& container,
    S const& separator,
    UnaryOp unary&lowbar;op);
----

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

== Return Value

* The concatenation of the items separated by separator&period;
* The concatenation of the transformed items separated by separator&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *container*
| The items to join&period;
| *separator*
| The separator inserted between items&period;
| *unary&lowbar;op*
| Apply this operator to each item
|===


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