File indexing completed on 2025-01-18 09:34:59
0001
0002
0003
0004
0005
0006
0007
0008 #if !defined(BOOST_FUSION_SINGLE_VIEW_BEGIN_IMPL_05052005_0305)
0009 #define BOOST_FUSION_SINGLE_VIEW_BEGIN_IMPL_05052005_0305
0010
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/mpl/int.hpp>
0013
0014 namespace boost { namespace fusion
0015 {
0016 struct single_view_tag;
0017
0018 template <typename SingleView, typename Pos>
0019 struct single_view_iterator;
0020
0021 namespace extension
0022 {
0023 template <typename Tag>
0024 struct begin_impl;
0025
0026 template <>
0027 struct begin_impl<single_view_tag>
0028 {
0029 template <typename Sequence>
0030 struct apply
0031 {
0032 typedef single_view_iterator<Sequence, mpl::int_<0> > type;
0033
0034 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0035 static type
0036 call(Sequence& seq)
0037 {
0038 return type(seq);
0039 }
0040 };
0041 };
0042 }
0043 }}
0044
0045 #endif
0046
0047