Template Function rcpputils::join

Function Documentation

template<typename CharT, typename ValueT, typename AllocatorT, template<typename T, class A> class ContainerT>
std::basic_string<CharT> rcpputils::join(const ContainerT<ValueT, AllocatorT> &container, const CharT *delim)

Join values in a container turned into strings by a given delimiter.

Parameters:
  • container[in] is a collection of values to be turned into string and joined.

  • delim[in] is a delimiter to join values turned into strings.

Template Parameters:
  • CharT – is the string character type.

  • ValueT – is the container value type.

  • AllocatorT – is the container allocator type.

  • ContainerT – is the container template type.

Returns:

joined string