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
PrimitiveGenerator
Description

PrimitiveGenerator is the most basic building block that the client uses to build more complex generators.

Refinement of

Generator

Post-delimit

Before exiting the generate member function, a PrimitiveGenerator is required to do a post-delimit. This will generate a single delimiting character/token sequence. Only PrimitiveGenerator's are required to perform this post-delimit. This is typically carried out through a call to karma::delimit_out:

karma::delimit_out(sink, delimit);
Type Expressions

Expression

Description

traits::is_primitive_generator<G>::type

Metafunction that evaluates to mpl::true_ if a certain type, G, is a PrimitiveGenerator, mpl::false_ otherwise (See MPL Boolean Constant).

Models

The following generators conform to this model:

FIXME Add more links to PrimitiveGenerator models here.


PrevUpHomeNext