Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::bimaps::tags::support::tag_of< Type > Struct Template Reference

Metafunction to obtain the tag of a type. More...

#include <tag_of.hpp>

Public Member Functions

 BOOST_BIMAP_STATIC_ERROR (USING_TAG_OF_WITH_AN_UNTAGGED_TYPE,(Type))
 

Detailed Description

template<class Type>
struct boost::bimaps::tags::support::tag_of< Type >

Metafunction to obtain the tag of a type.

template< class TaggedType >
struct tag_of
{
typedef {Tag} type;
};

If the type is not tagged you will get a compile timer error with the following message:

USING_TAG_OF_WITH_AN_UNTAGGED_TYPE, TaggedType

See also tagged, value_type_of.

Member Function Documentation

template<class Type >
boost::bimaps::tags::support::tag_of< Type >::BOOST_BIMAP_STATIC_ERROR ( USING_TAG_OF_WITH_AN_UNTAGGED_TYPE  ,
(Type)   
)

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