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

Name

Description

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

Name

Description

llvm::operator<<

Write Interleaved to OS and return OS.

Non-Member Functions

Name

Description

interleaved

Create a format object that prints R with interleaved elements.

interleaved_array

Create a format object that prints R as an interleaved array.

Created with MrDocs