Join the elements of an initializer list into a string.

Synopsis

Declared in <folly/String.h>

template<
    class Delim,
    class Value,
    class String>
void
join(
    Delim const& delimiter,
    std::initializer_list<Value> const& values,
    String& output);

Parameters

Name

Description

delimiter

The delimiter placed between elements.

values

The values to join.

output

The string that the joined result is stored in.

Created with MrDocs