Template Function cras::join

Function Documentation

template<typename T>
::std::string cras::join(const T &strings, const ::std::string &delimiter)

Return a string that is a concatenation of elements of strings delimited by delimiter.

Template Parameters:

T – An iterable type (must support size() and foreach).

Parameters:
  • strings[in] The elements to put into a string.

  • delimiter[in] Delimiter put between elements.

Returns:

The concatenated string.