llvm::join

join overloads

Synopses

Declared in <llvm/ADT/StringExtras.h>

Joins the strings in the range [R.begin(), R.end()), adding Separator] between the elements.

template<typename Range>
std::string
join(
    Range&& R,
    StringRef Separator);
» more...

Joins the strings in the range [Begin, End), adding Separator between] the elements.

template<typename IteratorT>
std::string
join(
    IteratorT Begin,
    IteratorT End,
    StringRef Separator);
» more...

Return Value

The joined string.

Parameters

NameDescription
Rrange of strings to join
Separatortext inserted between consecutive elements
Beginstart of the range of strings to join
Endend of the range of strings to join