llvm::InterleavedRange

Format object that prints a range with a separator and optional surroundings.

Synopsis

Declared in <llvm/Support/InterleavedRange.h>

template<typename Range>
class InterleavedRange;

Description

Supports specifying the separator and, optionally, the prefix and suffix to be printed surrounding the range. Uses the operator '<<' of the range element type for printing. The range type itself does not have to have an '<<' operator defined.

Member Functions

NameDescription
InterleavedRange [constructor]Construct from range R with Separator between elements and optional Prefix / Suffix.
str Return the formatted range as a string.
operator std::string Convert to a string by formatting the range.

Friends

NameDescription
llvm::operator<<Write Interleaved to OS and return OS.

Non-Member Functions

NameDescription
interleavedCreate a format object that prints R with interleaved elements.
interleaved_arrayCreate a format object that prints R as an interleaved array.