Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
Generator Directives

See here for more information about Generator Directives.

Expression

Attribute

Description

lower[a]

A

Generate a as lower case

upper[a]

A

Generate a as upper case

left_align[a]

A

Generate a left aligned in column of width BOOST_KARMA_DEFAULT_FIELD_LENGTH

left_align(num)[a]

A

Generate a left aligned in column of width num

left_align(g)[a]

A

Generate a left aligned in column of width BOOST_KARMA_DEFAULT_FIELD_LENGTH while using g to generate the necessary padding

left_align(num, g)[a]

A

Generate a left aligned in column of width num while using g to generate the necessary padding

center[a]

A

Generate a centered in column of width BOOST_KARMA_DEFAULT_FIELD_LENGTH

center(num)[a]

A

Generate a centered in column of width num

center(g)[a]

A

Generate a centered in column of width BOOST_KARMA_DEFAULT_FIELD_LENGTH while using g to generate the necessary padding

center(num, g)[a]

A

Generate a centered in column of width num while using g to generate the necessary padding

right_align[a]

A

Generate a right aligned in column of width BOOST_KARMA_DEFAULT_FIELD_LENGTH

right_align(num)[a]

A

Generate a right aligned in column of width num

right_align(g)[a]

A

Generate a right aligned in column of width BOOST_KARMA_DEFAULT_FIELD_LENGTH while using g to generate the necessary padding

right_align(num, g)[a]

A

Generate a right aligned in column of width num while using g to generate the necessary padding

maxwidth[a]

A

Generate a truncated to column of width BOOST_KARMA_DEFAULT_FIELD_MAXWIDTH

maxwidth(num)[a]

A

Generate a truncated to column of width num

repeat[a]

vector<A>

Repeat a zero or more times

repeat(num)[a]

vector<A>

Repeat a num times

repeat(num1, num2)[a]

vector<A>

Repeat a num1 to num2 times

repeat(num, inf)[a]

vector<A>

Repeat a num or more times

verbatim[a]

A

Disable delimited generation for a. Performs post delimiting.

delimit[a]

A

Reestablish the delimiter that got inhibited by verbatim

delimit(d)[a]

A

Use d as a delimiter for generating a

no_delimit[a]

A

Disable delimited generation for a. No post-delimiting step performed.

as<T>[]()[a]

A

Force atomic output from arbitrary attribute types

as_string[][a]

A

Force atomic output from string attributes

as_wstring[][a]

A

Force atomic output from wide character string attributes

omit[a]

A

Consume the attribute type of a without generating anything. The embedded generator will be always executed.

skip[a]

A

Consume the attribute type of a without generating anything. The embedded generator will never be executed.

duplicate[a]

A

The supplied attribute will be duplicated and passed unchanged to all embedded elements of a sequence.

buffer[a]

A

Temporarily intercept the output generated by a, flushing it only after a succeeded

columns[a]

A

Generate a split into BOOST_KARMA_DEFAULT_COLUMNS number of columns using karma::eol as column delimiter

columns(num)[a]

A

Generate a split into num number of columns using karma::eol as column delimiter

columns(g)[a]

A

Generate a split into BOOST_KARMA_DEFAULT_COLUMNS number of columns using g as column delimiter

columns(num, g)[a]

A

Generate a split into num number of columns using g as column delimiter


PrevUpHomeNext