...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
UnaryParser is a composite parser that has a single subject. The UnaryParser may change the behavior of its subject following the Delegate Design Pattern.
Notation
p
A UnaryParser.
P
A UnaryParser type.
In addition to the requirements defined in Parser
, for any UnaryParser
the following must be met:
Expression |
Semantics |
Return type |
---|---|---|
|
Subject parser. |
Expression |
Description |
---|---|
|
The subject parser type. |
|
Metafunction that evaluates to |
For any UnaryParser, P
,
the following invariant always holds:
traits::is_parser<P::subject_type>::type
evaluates to mpl::true_