Mirror reflection library 0.5.13
|
Template, instantiations of which conform to the MetaType concept. More...
#include <mirror/mirror_fwd.hpp>
Public Types | |
typedef aux::reflect_type < Type >::type | type |
Template, instantiations of which conform to the MetaType concept.
Instantiations of this template conform to the MetaType, MetaClass of MetaEnum reflecting the Type passed as the template parameter. This template is only 'syntactic sugar' and has several limitations; The mirror::reflected
should be used in most situations instead. Most notably the categorize_meta_object
and the meta_object_category
do not work properly for this template, but it can be converted to a proper MetaType model via the mp::as_a meta-function if necessary. It can also be safely used as a MetaType expression:
cout << mp::size<member_variables<reflected_type<T> > >::value << endl;
mirror/example/hello_world.cpp, and mirror/example/typenames_04.cpp.