[#fmt-join-08]
= xref:fmt.adoc[fmt]::join
:relfileprefix: ../
:mrdocs:

Returns an object that formats `std&colon;&colon;tuple` with elements separated by `sep`&period;

== Synopsis

Declared in `&lt;fmt&sol;ranges&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Tuple&gt;
constexpr
xref:fmt/tuple_join_view.adoc[tuple&lowbar;join&lowbar;view&lt;Tuple, char&gt;]
join(
    Tuple const& tuple,
    xref:fmt/string_view.adoc[string&lowbar;view] sep);
----

== Description

*Example*&colon;

auto t &equals; std&colon;&colon;tuple&lt;int, char&gt;(1, &apos;a&apos;)&semi; fmt&colon;&colon;print(&quot;&lcub;&rcub;&quot;, fmt&colon;&colon;join(t, &quot;, &quot;))&semi; &sol;&sol; Output&colon; 1, a

== Return Value

an object that formats `std&colon;&colon;tuple` with elements separated by `sep`&period;


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