File indexing completed on 2025-01-18 09:34:50
0001
0002
0003
0004
0005
0006
0007
0008
0009 namespace boost { namespace fusion
0010 {
0011 template <typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9>
0012 struct tuple : vector<T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9>
0013 {
0014 typedef vector<
0015 T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9>
0016 base_type;
0017 BOOST_FUSION_GPU_ENABLED tuple()
0018 : base_type() {}
0019 BOOST_FUSION_GPU_ENABLED tuple(tuple const& rhs)
0020 : base_type(static_cast<base_type const&>(rhs)) {}
0021 template <typename U1, typename U2>
0022 BOOST_FUSION_GPU_ENABLED
0023 tuple(std::pair<U1, U2> const& rhs)
0024 : base_type(rhs) {}
0025 BOOST_FUSION_GPU_ENABLED
0026 explicit
0027 tuple(typename detail::call_param<T0 >::type arg0)
0028 : base_type(arg0) {}
0029 template <typename U0>
0030 BOOST_FUSION_GPU_ENABLED
0031 tuple(tuple<U0> const& rhs)
0032 : base_type(rhs) {}
0033 template <typename U0>
0034 BOOST_FUSION_GPU_ENABLED
0035 tuple& operator=(tuple<U0> const& rhs)
0036 {
0037 base_type::operator=(rhs);
0038 return *this;
0039 }
0040 BOOST_FUSION_GPU_ENABLED
0041 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1)
0042 : base_type(arg0 , arg1) {}
0043 template <typename U0 , typename U1>
0044 BOOST_FUSION_GPU_ENABLED
0045 tuple(tuple<U0 , U1> const& rhs)
0046 : base_type(rhs) {}
0047 template <typename U0 , typename U1>
0048 BOOST_FUSION_GPU_ENABLED
0049 tuple& operator=(tuple<U0 , U1> const& rhs)
0050 {
0051 base_type::operator=(rhs);
0052 return *this;
0053 }
0054 BOOST_FUSION_GPU_ENABLED
0055 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2)
0056 : base_type(arg0 , arg1 , arg2) {}
0057 template <typename U0 , typename U1 , typename U2>
0058 BOOST_FUSION_GPU_ENABLED
0059 tuple(tuple<U0 , U1 , U2> const& rhs)
0060 : base_type(rhs) {}
0061 template <typename U0 , typename U1 , typename U2>
0062 BOOST_FUSION_GPU_ENABLED
0063 tuple& operator=(tuple<U0 , U1 , U2> const& rhs)
0064 {
0065 base_type::operator=(rhs);
0066 return *this;
0067 }
0068 BOOST_FUSION_GPU_ENABLED
0069 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2 , typename detail::call_param<T3 >::type arg3)
0070 : base_type(arg0 , arg1 , arg2 , arg3) {}
0071 template <typename U0 , typename U1 , typename U2 , typename U3>
0072 BOOST_FUSION_GPU_ENABLED
0073 tuple(tuple<U0 , U1 , U2 , U3> const& rhs)
0074 : base_type(rhs) {}
0075 template <typename U0 , typename U1 , typename U2 , typename U3>
0076 BOOST_FUSION_GPU_ENABLED
0077 tuple& operator=(tuple<U0 , U1 , U2 , U3> const& rhs)
0078 {
0079 base_type::operator=(rhs);
0080 return *this;
0081 }
0082 BOOST_FUSION_GPU_ENABLED
0083 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2 , typename detail::call_param<T3 >::type arg3 , typename detail::call_param<T4 >::type arg4)
0084 : base_type(arg0 , arg1 , arg2 , arg3 , arg4) {}
0085 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4>
0086 BOOST_FUSION_GPU_ENABLED
0087 tuple(tuple<U0 , U1 , U2 , U3 , U4> const& rhs)
0088 : base_type(rhs) {}
0089 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4>
0090 BOOST_FUSION_GPU_ENABLED
0091 tuple& operator=(tuple<U0 , U1 , U2 , U3 , U4> const& rhs)
0092 {
0093 base_type::operator=(rhs);
0094 return *this;
0095 }
0096 BOOST_FUSION_GPU_ENABLED
0097 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2 , typename detail::call_param<T3 >::type arg3 , typename detail::call_param<T4 >::type arg4 , typename detail::call_param<T5 >::type arg5)
0098 : base_type(arg0 , arg1 , arg2 , arg3 , arg4 , arg5) {}
0099 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5>
0100 BOOST_FUSION_GPU_ENABLED
0101 tuple(tuple<U0 , U1 , U2 , U3 , U4 , U5> const& rhs)
0102 : base_type(rhs) {}
0103 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5>
0104 BOOST_FUSION_GPU_ENABLED
0105 tuple& operator=(tuple<U0 , U1 , U2 , U3 , U4 , U5> const& rhs)
0106 {
0107 base_type::operator=(rhs);
0108 return *this;
0109 }
0110 BOOST_FUSION_GPU_ENABLED
0111 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2 , typename detail::call_param<T3 >::type arg3 , typename detail::call_param<T4 >::type arg4 , typename detail::call_param<T5 >::type arg5 , typename detail::call_param<T6 >::type arg6)
0112 : base_type(arg0 , arg1 , arg2 , arg3 , arg4 , arg5 , arg6) {}
0113 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6>
0114 BOOST_FUSION_GPU_ENABLED
0115 tuple(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6> const& rhs)
0116 : base_type(rhs) {}
0117 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6>
0118 BOOST_FUSION_GPU_ENABLED
0119 tuple& operator=(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6> const& rhs)
0120 {
0121 base_type::operator=(rhs);
0122 return *this;
0123 }
0124 BOOST_FUSION_GPU_ENABLED
0125 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2 , typename detail::call_param<T3 >::type arg3 , typename detail::call_param<T4 >::type arg4 , typename detail::call_param<T5 >::type arg5 , typename detail::call_param<T6 >::type arg6 , typename detail::call_param<T7 >::type arg7)
0126 : base_type(arg0 , arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7) {}
0127 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7>
0128 BOOST_FUSION_GPU_ENABLED
0129 tuple(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6 , U7> const& rhs)
0130 : base_type(rhs) {}
0131 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7>
0132 BOOST_FUSION_GPU_ENABLED
0133 tuple& operator=(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6 , U7> const& rhs)
0134 {
0135 base_type::operator=(rhs);
0136 return *this;
0137 }
0138 BOOST_FUSION_GPU_ENABLED
0139 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2 , typename detail::call_param<T3 >::type arg3 , typename detail::call_param<T4 >::type arg4 , typename detail::call_param<T5 >::type arg5 , typename detail::call_param<T6 >::type arg6 , typename detail::call_param<T7 >::type arg7 , typename detail::call_param<T8 >::type arg8)
0140 : base_type(arg0 , arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8) {}
0141 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7 , typename U8>
0142 BOOST_FUSION_GPU_ENABLED
0143 tuple(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6 , U7 , U8> const& rhs)
0144 : base_type(rhs) {}
0145 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7 , typename U8>
0146 BOOST_FUSION_GPU_ENABLED
0147 tuple& operator=(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6 , U7 , U8> const& rhs)
0148 {
0149 base_type::operator=(rhs);
0150 return *this;
0151 }
0152 BOOST_FUSION_GPU_ENABLED
0153 tuple(typename detail::call_param<T0 >::type arg0 , typename detail::call_param<T1 >::type arg1 , typename detail::call_param<T2 >::type arg2 , typename detail::call_param<T3 >::type arg3 , typename detail::call_param<T4 >::type arg4 , typename detail::call_param<T5 >::type arg5 , typename detail::call_param<T6 >::type arg6 , typename detail::call_param<T7 >::type arg7 , typename detail::call_param<T8 >::type arg8 , typename detail::call_param<T9 >::type arg9)
0154 : base_type(arg0 , arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 , arg9) {}
0155 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7 , typename U8 , typename U9>
0156 BOOST_FUSION_GPU_ENABLED
0157 tuple(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6 , U7 , U8 , U9> const& rhs)
0158 : base_type(rhs) {}
0159 template <typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7 , typename U8 , typename U9>
0160 BOOST_FUSION_GPU_ENABLED
0161 tuple& operator=(tuple<U0 , U1 , U2 , U3 , U4 , U5 , U6 , U7 , U8 , U9> const& rhs)
0162 {
0163 base_type::operator=(rhs);
0164 return *this;
0165 }
0166 template <typename T>
0167 BOOST_FUSION_GPU_ENABLED
0168 tuple& operator=(T const& rhs)
0169 {
0170 base_type::operator=(rhs);
0171 return *this;
0172 }
0173 BOOST_FUSION_GPU_ENABLED
0174 tuple& operator=(tuple const& rhs)
0175 {
0176 base_type::operator=(static_cast<base_type const&>(rhs));
0177 return *this;
0178 }
0179 template <typename U1, typename U2>
0180 BOOST_FUSION_GPU_ENABLED
0181 tuple& operator=(std::pair<U1, U2> const& rhs)
0182 {
0183 base_type::operator=(rhs);
0184 return *this;
0185 }
0186 };
0187 template <typename Tuple>
0188 struct tuple_size : result_of::size<Tuple> {};
0189 template <int N, typename Tuple>
0190 struct tuple_element : result_of::value_at_c<Tuple, N> {};
0191 template <int N, typename Tuple>
0192 BOOST_FUSION_GPU_ENABLED
0193 inline typename
0194 lazy_disable_if<
0195 is_const<Tuple>
0196 , result_of::at_c<Tuple, N>
0197 >::type
0198 get(Tuple& tup)
0199 {
0200 return at_c<N>(tup);
0201 }
0202 template <int N, typename Tuple>
0203 BOOST_FUSION_GPU_ENABLED
0204 inline typename result_of::at_c<Tuple const, N>::type
0205 get(Tuple const& tup)
0206 {
0207 return at_c<N>(tup);
0208 }
0209 }}