folly::gen::unsplit

Joins a sequence of tokens into a buffer using the given delimiter.

Synopsis

Declared in <folly/gen/String.h>

template<
    class Delimiter,
    class OutputBuffer,
    class UnsplitBuffer = /* implementation-defined */>
UnsplitBuffer
unsplit(
    Delimiter delimiter,
    OutputBuffer* outputBuffer);

Return Value

A sink that appends the joined tokens to outputBuffer.

Parameters

NameDescription
delimiterThe delimiter inserted between tokens.
outputBufferThe buffer the joined tokens are appended to.