absl::StrJoin

Joins a range of elements using the default formatter.

Synopsis

Declared in <absl/strings/str_join.h>

template<typename Iterator>
std::string
StrJoin(
    Iterator start,
    Iterator end,
    std::string_view separator);

Return Value

The joined string.

Parameters

NameDescription
startIterator to the first element to join.
endIterator past the last element to join.
separatorThe separator placed between joined elements.