File indexing completed on 2025-01-18 09:29:38
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef BOOST_BIMAP_RELATION_SUPPORT_GET_HPP
0013 #define BOOST_BIMAP_RELATION_SUPPORT_GET_HPP
0014
0015 #if defined(_MSC_VER)
0016 #pragma once
0017 #endif
0018
0019 #include <boost/config.hpp>
0020
0021 #include <boost/bimap/relation/support/value_type_of.hpp>
0022
0023 #include <boost/bimap/relation/detail/access_builder.hpp>
0024
0025 #include <boost/mpl/if.hpp>
0026 #include <boost/type_traits/is_same.hpp>
0027 #include <boost/type_traits/is_const.hpp>
0028
0029 #ifdef BOOST_BIMAP_ONLY_DOXYGEN_WILL_PROCESS_THE_FOLLOWING_LINES
0030
0031
0032 namespace boost {
0033 namespace bimaps {
0034 namespace relation {
0035 namespace support {
0036
0037
0038
0039
0040
0041
0042 template< class Tag, class SymmetricType >
0043 BOOST_DEDUCED_TYPENAME result_of::get<Tag,SymmetricType>::type
0044 get( SymmetricType & );
0045
0046 }
0047 }
0048 }
0049 }
0050
0051 #endif
0052
0053
0054
0055 #ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
0056
0057 namespace boost {
0058 namespace bimaps {
0059 namespace relation {
0060 namespace support {
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091 BOOST_BIMAP_SYMMETRIC_ACCESS_RESULT_OF_BUILDER
0092 (
0093 get,
0094 value_type_of
0095 )
0096
0097
0098
0099
0100
0101
0102 BOOST_BIMAP_SYMMETRIC_ACCESS_IMPLEMENTATION_BUILDER
0103 (
0104 get,
0105 SymmetricType,
0106 st,
0107 return st.get_left(),
0108 return st.get_right()
0109 )
0110
0111 namespace detail {
0112
0113 template< class SymmetricType >
0114 BOOST_DEDUCED_TYPENAME result_of::get<
0115 ::boost::bimaps::relation::member_at::info, SymmetricType >::type
0116 get(::boost::bimaps::relation::member_at::info, SymmetricType & rel)
0117 {
0118 return rel.info;
0119 }
0120
0121 }
0122
0123
0124
0125
0126 BOOST_BIMAP_SYMMETRIC_ACCESS_INTERFACE_BUILDER
0127 (
0128 get
0129 )
0130
0131
0132 }
0133 }
0134 }
0135 }
0136
0137 #endif
0138
0139 #endif
0140