]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/bimap/relation/support/opposite_tag.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / bimap / relation / support / opposite_tag.hpp
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/opposite_tag.hpp
10 /// \brief Metafunction to obtain the opposite tag in a relation.
11
12 #ifndef BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP
13 #define BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_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::opposite_tag
24
25 \brief Metafunction to obtain the opposite tag in a relation.
26
27 \code
28
29 template< class Tag, class Relation >
30 struct opposite_tag
31 {
32 typedef {OppositeTag} type;
33 };
34
35 \endcode
36
37 \ingroup relation_group
38 **/
39
40 namespace boost {
41 namespace bimaps {
42 namespace relation {
43 namespace support {
44
45 // Implementation of const pair reference type by metafunction
46
47 BOOST_BIMAP_SYMMETRIC_METADATA_ACCESS_BUILDER
48 (
49 opossite_tag,
50 right_tag,
51 left_tag
52 )
53
54 } // namespace support
55 } // namespace relation
56 } // namespace bimaps
57 } // namespace boost
58
59
60 #endif // BOOST_BIMAP_RELATION_SUPPORT_OPPOSITE_TAG_HPP
61