Joins the elements of an initializer list using the default formatter.

Synopsis

Declared in <absl/strings/str_join.h>

template<typename T>
requires !std::is_convertible_v<T, absl::string_view>
std::string
StrJoin(
    std::initializer_list<T> il,
    std::string_view separator);

Return Value

The joined string.

Parameters

Name

Description

il

The initializer list of elements to join.

separator

The separator placed between joined elements.

Created with MrDocs