StrCat overloads

Synopses

Declared in <absl/strings/str_cat.h>

Merges the given strings or numbers into a single string.

[[nodiscard]]
std::string
StrCat();

Merges a single value into a string.

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

Merges a single arithmetic value into a string.

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

Merges two strings or numbers into a single string.

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

Merges three strings or numbers into a single string.

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

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);

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);

Return Value

  • An empty string.

  • The string representation of a.

  • The concatenation of the arguments.

Note

The return value should not be discarded.

Parameters

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.

Created with MrDocs