[#absl-StrCat-04] = xref:absl.adoc[absl]::StrCat :relfileprefix: ../ :mrdocs: `StrCat` overloads == Synopses Declared in `<absl/strings/str_cat.h>` Merges the given strings or numbers into a single string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/StrCat-09.adoc[StrCat](); ---- [.small]#xref:absl/StrCat-09.adoc[_» more..._]# Merges a single value into a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/StrCat-03.adoc[StrCat](xref:absl/AlphaNum.adoc[AlphaNum] const& a); ---- [.small]#xref:absl/StrCat-03.adoc[_» more..._]# Merges a single arithmetic value into a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> [[nodiscard]] std::string xref:absl/StrCat-0d2.adoc[StrCat](/* implementation-defined */ a); ---- [.small]#xref:absl/StrCat-0d2.adoc[_» more..._]# Merges two strings or numbers into a single string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/StrCat-0d3.adoc[StrCat]( xref:absl/AlphaNum.adoc[AlphaNum] const& a, xref:absl/AlphaNum.adoc[AlphaNum] const& b); ---- [.small]#xref:absl/StrCat-0d3.adoc[_» more..._]# Merges three strings or numbers into a single string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/StrCat-0dd.adoc[StrCat]( xref:absl/AlphaNum.adoc[AlphaNum] const& a, xref:absl/AlphaNum.adoc[AlphaNum] const& b, xref:absl/AlphaNum.adoc[AlphaNum] const& c); ---- [.small]#xref:absl/StrCat-0dd.adoc[_» more..._]# Merges four strings or numbers into a single string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/StrCat-0f.adoc[StrCat]( xref:absl/AlphaNum.adoc[AlphaNum] const& a, xref:absl/AlphaNum.adoc[AlphaNum] const& b, xref:absl/AlphaNum.adoc[AlphaNum] const& c, xref:absl/AlphaNum.adoc[AlphaNum] const& d); ---- [.small]#xref:absl/StrCat-0f.adoc[_» more..._]# Merges five or more strings or numbers into a single string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... AV> [[nodiscard]] std::string xref:absl/StrCat-00.adoc[StrCat]( xref:absl/AlphaNum.adoc[AlphaNum] const& a, xref:absl/AlphaNum.adoc[AlphaNum] const& b, xref:absl/AlphaNum.adoc[AlphaNum] const& c, xref:absl/AlphaNum.adoc[AlphaNum] const& d, xref:absl/AlphaNum.adoc[AlphaNum] const& e, AV const&... args); ---- [.small]#xref:absl/StrCat-00.adoc[_» more..._]# == Return Value * An empty string. * The string representation of `a`. * The concatenation of the arguments. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *a* | The value to convert. | *b* | The second value to concatenate. | *c* | The third value to concatenate. | *d* | The fourth value to concatenate. | *e* | The fifth value to concatenate. | *args* | Any additional values to concatenate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#