Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::bimaps::support::data_type_by Struct Reference

Metafunction to obtain the data type of one of the sides in a bimap. More...

#include <data_type_by.hpp>

Detailed Description

Metafunction to obtain the data type of one of the sides in a bimap.

The tag parameter can be either a user defined tag or member_at::{side}. This is the actual data type stored in the bimap.

template< class Tag, class Bimap >
struct data_type_by
{
typedef typename Bimap::{side}_data_type type;
};

The following holds:

(
is_same< data_type_by< member_at::left, bimap<A,B> >::type, A >::value
)

See also member_at.


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