Mirror reflection library 0.5.13

mirror::apply_modifier< MetaType, ModifierExpr > Struct Template Reference

Meta-function returning MetaType reflecting a modified original type. More...

#include <mirror/mirror_fwd.hpp>

List of all members.

Public Types

typedef reflected< typename
mirror::mp::apply
< ModifierExpr, typename
original_type< MetaType >
::type >::type >::type 
type
typedef MetaType type
 MetaType reflecting the type modified by the modifier expression.

Detailed Description

template<class MetaType, class ModifierExpr>
struct mirror::apply_modifier< MetaType, ModifierExpr >

Meta-function returning MetaType reflecting a modified original type.

This Meta-function returns a MetaType reflecting a type that is the result of application of the ModifierLambdaExpression on the original_type reflected by the passed MetaType.

Template Parameters:
MetaTypemeta-type reflecting the original type to be modified and reflected.
ModifierLambdaExpressionunary lambda expression doing the modification of the original type. For example:

  std::add_const<std::add_pointer<mirror::mp::arg<1>>>

The type trait templates used to construct the modifier expression must not return a boolean or integral constants.

See also:
MetaType
mp::arg
Examples:

mirror/example/meta_prog_13.cpp, and mirror/example/meta_prog_14.cpp.


The documentation for this struct was generated from the following files:

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.