util::Join

Join all container items. Typically used to concatenate strings but accepts containers with elements of any type.

Synopsis

Declared in <util/string.h>

template<
    typename C,
    typename S,
    typename UnaryOp>
auto
Join(
    C const& container,
    S const& separator,
    UnaryOp unary_op);

Return Value

The concatenation of the transformed items separated by separator.

Parameters

NameDescription
containerThe items to join
separatorThe separator
unary_opApply this operator to each item