Mirror reflection library 0.5.13
|
Template meta-function for getting a category tag of a type. More...
#include <mirror/meta_object_tags.hpp>
Public Types | |
typedef CategoryTag | type |
Template meta-function for getting a category tag of a type.
This template meta-function can be used to get the possibly up-cast category tag for a (meta-object) type. The difference between this template and meta_object_category is, that meta_object_category returns the exact meta-object-tag type for a particular meta-object. Sometimes it is however desirable to upcast the tag to a more general meta-object-tag.
This template allows to specify a set of meta-object-tags to one of which the real meta-object tag is up-cast if possible. This is useful for example if there is a template overload for MetaType but we also want it to handle MetaClass, MetaTemplatedType, or other derived meta-objects.
T | the type to be examined for Mirror category tag |
CategoryTags | the pack of category tags to up-cast to if the real category tag is derived from one of those listed in this pack. |