]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/bimap/include/boost/bimap/relation/support/pair_type_by.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / bimap / include / boost / bimap / relation / support / pair_type_by.hpp
CommitLineData
7c673cae
FG
1// Boost.Bimap
2//
3// Copyright (c) 2006-2007 Matias Capeletto
4//
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)
8
9/// \file relation/support/pair_type_by.hpp
10/// \brief pair_type_by<tag,relation> metafunction
11
12#ifndef BOOST_BIMAP_RELATION_SUPPORT_PAIR_TYPE_BY_HPP
13#define BOOST_BIMAP_RELATION_SUPPORT_PAIR_TYPE_BY_HPP
14
15#if defined(_MSC_VER)
16#pragma once
17#endif
18
19#include <boost/config.hpp>
20
21#include <boost/bimap/relation/detail/metadata_access_builder.hpp>
22
23/** \struct boost::bimaps::relation::support::pair_type_by
24
25\brief Metafunction to obtain the view type indexed by one of the sides.
26
27\code
28
29template< class Tag, class Relation >
30struct pair_type_by
31{
32 typedef {signature-compatible with std::pair} type;
33};
34
35\endcode
36
37See also member_at, pair_by().
38\ingroup relation_group
39 **/
40
41namespace boost {
42namespace bimaps {
43namespace relation {
44namespace support {
45
46// Implementation of pair type by metafunction
47
48BOOST_BIMAP_SYMMETRIC_METADATA_ACCESS_BUILDER
49(
50 pair_type_by,
51 left_pair,
52 right_pair
53)
54
55} // namespace support
56} // namespace relation
57} // namespace bimaps
58} // namespace boost
59
60
61#endif // BOOST_BIMAP_RELATION_SUPPORT_PAIR_BY_TYPE_HPP
62