3
// Copyright (c) 2006-2007 Matias Capeletto
5
// Distributed under the Boost Software License, Version 1.0.
6
// (See accompanying file LICENSE_1_0.txt or copy at
7
// http://www.boost.org/LICENSE_1_0.txt)
9
/// \file support/value_type_by.hpp
10
/// \brief Metafunction to access the value types (std::pair compatibles) of a bimap
12
#ifndef BOOST_BIMAP_SUPPORT_VALUE_TYPE_BY_HPP
13
#define BOOST_BIMAP_SUPPORT_VALUE_TYPE_BY_HPP
15
#if defined(_MSC_VER) && (_MSC_VER>=1200)
19
#include <boost/config.hpp>
21
#include <boost/bimap/relation/detail/metadata_access_builder.hpp>
23
/** \struct boost::bimaps::support::value_type_by
25
\brief Metafunction to obtain the value type of a bimap indexed by one of the sides.
27
The tag parameter can be either a user defined tag or \c member_at::{side}.
28
The returned type is signature-compatible with std::pair.
32
template< class Tag, class Bimap >
35
typedef typename Bimap::{side}_value_type type;
48
// Implementation of value type by metafunction
50
BOOST_BIMAP_SYMMETRIC_METADATA_ACCESS_BUILDER
59
} // namespace support
64
#endif // BOOST_BIMAP_SUPPORT_VALUE_TYPE_BY_HPP
3
// Copyright (c) 2006-2007 Matias Capeletto
5
// Distributed under the Boost Software License, Version 1.0.
6
// (See accompanying file LICENSE_1_0.txt or copy at
7
// http://www.boost.org/LICENSE_1_0.txt)
9
/// \file support/value_type_by.hpp
10
/// \brief Metafunction to access the value types (std::pair compatibles) of a bimap
12
#ifndef BOOST_BIMAP_SUPPORT_VALUE_TYPE_BY_HPP
13
#define BOOST_BIMAP_SUPPORT_VALUE_TYPE_BY_HPP
15
#if defined(_MSC_VER) && (_MSC_VER>=1200)
19
#include <boost/config.hpp>
21
#include <boost/bimap/relation/detail/metadata_access_builder.hpp>
23
/** \struct boost::bimaps::support::value_type_by
25
\brief Metafunction to obtain the value type of a bimap indexed by one of the sides.
27
The tag parameter can be either a user defined tag or \c member_at::{side}.
28
The returned type is signature-compatible with std::pair.
32
template< class Tag, class Bimap >
35
typedef typename Bimap::{side}_value_type type;
48
// Implementation of value type by metafunction
50
BOOST_BIMAP_SYMMETRIC_METADATA_ACCESS_BUILDER
59
} // namespace support
64
#endif // BOOST_BIMAP_SUPPORT_VALUE_TYPE_BY_HPP