absl::StrCat

StrCat overloads

Synopses

Declared in <absl/strings/str_cat.h>

Merges the given strings or numbers into a single string.

[[nodiscard]]
std::string
StrCat();
» more...

Merges a single value into a string.

[[nodiscard]]
std::string
StrCat(AlphaNum const& a);
» more...

Merges a single arithmetic value into a string.

template<typename T>
[[nodiscard]]
std::string
StrCat(/* implementation-defined */ a);
» more...

Merges two strings or numbers into a single string.

[[nodiscard]]
std::string
StrCat(
    AlphaNum const& a,
    AlphaNum const& b);
» more...

Merges three strings or numbers into a single string.

[[nodiscard]]
std::string
StrCat(
    AlphaNum const& a,
    AlphaNum const& b,
    AlphaNum const& c);
» more...

Merges four strings or numbers into a single string.

[[nodiscard]]
std::string
StrCat(
    AlphaNum const& a,
    AlphaNum const& b,
    AlphaNum const& c,
    AlphaNum const& d);
» more...

Merges five or more strings or numbers into a single string.

template<typename... AV>
[[nodiscard]]
std::string
StrCat(
    AlphaNum const& a,
    AlphaNum const& b,
    AlphaNum const& c,
    AlphaNum const& d,
    AlphaNum const& e,
    AV const&... args);
» more...

Return Value

  • An empty string.
  • The string representation of a.
  • The concatenation of the arguments.

NOTE

The return value should not be discarded.

Parameters

NameDescription
aThe value to convert.
bThe second value to concatenate.
cThe third value to concatenate.
dThe fourth value to concatenate.
eThe fifth value to concatenate.
argsAny additional values to concatenate.