File indexing completed on 2025-01-18 09:41:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 namespace boost { namespace mpl {
0014
0015 template<
0016 typename Tag1
0017 , typename Tag2
0018
0019 , BOOST_MPL_AUX_NTTP_DECL(int, tag1_) = BOOST_MPL_AUX_MSVC_VALUE_WKND(Tag1)::value
0020 , BOOST_MPL_AUX_NTTP_DECL(int, tag2_) = BOOST_MPL_AUX_MSVC_VALUE_WKND(Tag2)::value
0021 >
0022 struct bitor_impl
0023 : if_c<
0024 ( tag1_ > tag2_ )
0025 , aux::cast2nd_impl< bitor_impl< Tag1,Tag1 >,Tag1, Tag2 >
0026 , aux::cast1st_impl< bitor_impl< Tag2,Tag2 >,Tag1, Tag2 >
0027 >::type
0028 {
0029 };
0030
0031
0032 template<> struct bitor_impl< na,na >
0033 {
0034 template< typename U1, typename U2 > struct apply
0035 {
0036 typedef apply type;
0037 BOOST_STATIC_CONSTANT(int, value = 0);
0038 };
0039 };
0040
0041 template<> struct bitor_impl< na,integral_c_tag >
0042 {
0043 template< typename U1, typename U2 > struct apply
0044 {
0045 typedef apply type;
0046 BOOST_STATIC_CONSTANT(int, value = 0);
0047 };
0048 };
0049
0050 template<> struct bitor_impl< integral_c_tag,na >
0051 {
0052 template< typename U1, typename U2 > struct apply
0053 {
0054 typedef apply type;
0055 BOOST_STATIC_CONSTANT(int, value = 0);
0056 };
0057 };
0058
0059 template< typename T > struct bitor_tag
0060 : tag< T,na >
0061 {
0062 };
0063
0064
0065
0066 template<
0067 typename BOOST_MPL_AUX_NA_PARAM(N1)
0068 , typename BOOST_MPL_AUX_NA_PARAM(N2)
0069 >
0070 struct bitor_2;
0071
0072 template<
0073 typename BOOST_MPL_AUX_NA_PARAM(N1)
0074 , typename BOOST_MPL_AUX_NA_PARAM(N2)
0075 , typename N3 = na, typename N4 = na, typename N5 = na
0076 >
0077 struct bitor_
0078
0079 : aux::msvc_eti_base< typename if_<
0080
0081 is_na<N3>
0082 , bitor_2< N1,N2 >
0083 , bitor_<
0084 bitor_2< N1,N2 >
0085 , N3, N4, N5
0086 >
0087 >::type
0088
0089 >
0090
0091 {
0092 BOOST_MPL_AUX_LAMBDA_SUPPORT(
0093 5
0094 , bitor_
0095 , ( N1, N2, N3, N4, N5 )
0096 )
0097 };
0098
0099 template<
0100 typename N1
0101 , typename N2
0102 >
0103 struct bitor_2
0104 : aux::msvc_eti_base< typename apply_wrap2<
0105 bitor_impl<
0106 typename bitor_tag<N1>::type
0107 , typename bitor_tag<N2>::type
0108 >
0109 , N1
0110 , N2
0111 >::type >::type
0112
0113 {
0114 BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitor_2, (N1, N2))
0115
0116 };
0117
0118 BOOST_MPL_AUX_NA_SPEC2(2, 5, bitor_)
0119
0120 }}
0121
0122 namespace boost { namespace mpl {
0123
0124 namespace aux {
0125 template< typename T, T n1, T n2 >
0126 struct bitor_wknd
0127 {
0128 BOOST_STATIC_CONSTANT(T, value = (n1 | n2));
0129 typedef integral_c< T,value > type;
0130 };
0131
0132 }
0133
0134 template<>
0135 struct bitor_impl< integral_c_tag,integral_c_tag >
0136 {
0137 template< typename N1, typename N2 > struct apply
0138 : aux::bitor_wknd<
0139 typename aux::largest_int<
0140 typename N1::value_type
0141 , typename N2::value_type
0142 >::type
0143 , N1::value
0144 , N2::value
0145 >::type
0146
0147 {
0148 };
0149 };
0150
0151 }}