File indexing completed on 2025-01-18 09:31:08
0001
0002
0003
0004
0005
0006
0007 #if !defined(BOOST_FUSION_END_IMPL_09242011_1744)
0008 #define BOOST_FUSION_END_IMPL_09242011_1744
0009
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/adapted/std_tuple/std_tuple_iterator.hpp>
0012 #include <boost/type_traits/remove_const.hpp>
0013 #include <tuple>
0014
0015 namespace boost { namespace fusion
0016 {
0017 struct std_tuple_tag;
0018
0019 namespace extension
0020 {
0021 template<typename T>
0022 struct end_impl;
0023
0024 template <>
0025 struct end_impl<std_tuple_tag>
0026 {
0027 template <typename Sequence>
0028 struct apply
0029 {
0030 typedef typename remove_const<Sequence>::type seq_type;
0031 static int const size = std::tuple_size<seq_type>::value;
0032 typedef std_tuple_iterator<Sequence, size> type;
0033
0034 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0035 static type
0036 call(Sequence& v)
0037 {
0038 return type(v);
0039 }
0040 };
0041 };
0042 }
0043 }}
0044
0045 #endif