absl::StrJoin

Joins the elements of a std::tuple using a custom formatter.

Synopsis

Declared in <absl/strings/str_join.h>

template<
    typename... T,
    typename Formatter>
std::string
StrJoin(
    std::tuple<T...> const& value,
    std::string_view separator,
    Formatter&& fmt);

Return Value

The joined string.

Parameters

NameDescription
valueThe tuple of elements to join.
separatorThe separator placed between joined elements.
fmtThe formatter used to convert each element to a string.