xtd 0.2.0
Loading...
Searching...
No Matches

◆ join() [2/3]

template<typename collection_t >
static ustring xtd::ustring::join ( const ustring separator,
const collection_t &  values,
size_t  index 
)
inlinestaticnoexcept

Concatenates a specified separator string between each element of a specified object array, yielding a single concatenated string.

Parameters
separatorA string separator.
valuesAn array of Object.
start_indexThe first array element in value to use.
Returns
A string consisting of the elements of value interspersed with the separator string.
Remarks
For example if separator is ", " and the elements of value are "red", "blue", "green", and "yellow", Join(separator, value) returns "red, blue, green, yellow".
stream << operator is called on each object to generate the content.