Boost C++ Libraries Boost.Bimap Home Libraries People FAQ More

PrevUpHomeNext

tag_of Struct Reference

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

#include <tag_of.hpp>


Detailed Description

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.


The documentation for this struct was generated from the following file:
Copyright 2006 Matias Capeletto

PrevUpHomeNext