[#absl-StrJoin-0c8] = xref:absl.adoc[absl]::StrJoin :relfileprefix: ../ :mrdocs: `StrJoin` overloads == Synopses Declared in `<absl/strings/str_join.h>` Joins an initializer list of `string_view` using the default formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/StrJoin-00.adoc[StrJoin]( std::initializer_list<std::string_view> il, std::string_view separator); ---- [.small]#xref:absl/StrJoin-00.adoc[_» more..._]# Joins the elements of an initializer list using the default formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> requires !std::is_convertible_v<T, absl::string_view> std::string xref:absl/StrJoin-01.adoc[StrJoin]( std::initializer_list<T> il, std::string_view separator); ---- [.small]#xref:absl/StrJoin-01.adoc[_» more..._]# Joins the elements of a range using the default formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Range> std::string xref:absl/StrJoin-03c.adoc[StrJoin]( Range const& range, std::string_view separator); ---- [.small]#xref:absl/StrJoin-03c.adoc[_» more..._]# Joins the elements of a `std::tuple` using the default formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... T> std::string xref:absl/StrJoin-0c9.adoc[StrJoin]( std::tuple<T...> const& value, std::string_view separator); ---- [.small]#xref:absl/StrJoin-0c9.adoc[_» more..._]# Joins a range of elements using the default formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Iterator> std::string xref:absl/StrJoin-02.adoc[StrJoin]( Iterator start, Iterator end, std::string_view separator); ---- [.small]#xref:absl/StrJoin-02.adoc[_» more..._]# Joins an initializer list of `string_view` using a custom formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Formatter> std::string xref:absl/StrJoin-0f.adoc[StrJoin]( std::initializer_list<std::string_view> il, std::string_view separator, Formatter&& fmt); ---- [.small]#xref:absl/StrJoin-0f.adoc[_» more..._]# Joins the elements of an initializer list using a custom formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename Formatter> requires !std::is_convertible_v<T, absl::string_view> std::string xref:absl/StrJoin-07.adoc[StrJoin]( std::initializer_list<T> il, std::string_view separator, Formatter&& fmt); ---- [.small]#xref:absl/StrJoin-07.adoc[_» more..._]# Joins the elements of a range using a custom formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Range, typename Formatter> std::string xref:absl/StrJoin-086.adoc[StrJoin]( Range const& range, std::string_view separator, Formatter&& fmt); ---- [.small]#xref:absl/StrJoin-086.adoc[_» more..._]# Joins the elements of a `std::tuple` using a custom formatter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename... T, typename Formatter> std::string xref:absl/StrJoin-032.adoc[StrJoin]( std::tuple<T...> const& value, std::string_view separator, Formatter&& fmt); ---- [.small]#xref:absl/StrJoin-032.adoc[_» more..._]# Joins a range of elements and returns the result as a std::string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Iterator, typename Formatter> std::string xref:absl/StrJoin-080.adoc[StrJoin]( Iterator start, Iterator end, std::string_view sep, Formatter&& fmt); ---- [.small]#xref:absl/StrJoin-080.adoc[_» more..._]# == Return Value The joined string. == Parameters [cols="1,4"] |=== | Name| Description | *il* | The initializer list of elements to join. | *separator* | The separator placed between joined elements. | *range* | The range of elements to join. | *value* | The tuple of elements to join. | *start* | Iterator to the first element to join. | *end* | Iterator past the last element to join. | *fmt* | The formatter used to convert each element to a string. | *sep* | The separator placed between joined elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#