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

Click here to view the latest version of this page.
PrevUpHomeNext
UnaryGenerator
Description

UnaryGenerator is a composite generator that has a single subject. The UnaryGenerator may change the behavior of its subject following the Delegate Design Pattern.

Refinement of

Generator

Notation

g

A UnaryGenerator.

G

A UnaryGenerator type.

Valid Expressions

In addition to the requirements defined in Generator, for any UnaryGenerator the following must be met:

Expression

Semantics

Return type

g.subject

Subject generator.

Generator

Type Expressions

Expression

Description

G::subject_type

The subject generator type.

traits::is_unary_generator<G>::type

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

Invariants

For any UnaryGenerator, G, the following invariant always holds:

Models

The following generators conform to this model:

FIXME Add more links to models of UnaryGenerator concept


PrevUpHomeNext