File indexing completed on 2025-01-31 09:41:55
0001
0002
0003
0004
0005
0006
0007
0008 #if !defined(BOOST_FUSION_NVIEW_NEXT_IMPL_SEP_24_2009_0116PM)
0009 #define BOOST_FUSION_NVIEW_NEXT_IMPL_SEP_24_2009_0116PM
0010
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/iterator/next.hpp>
0013
0014 namespace boost { namespace fusion
0015 {
0016 struct nview_iterator_tag;
0017
0018 template <typename Sequence, typename Pos>
0019 struct nview_iterator;
0020
0021 namespace extension
0022 {
0023 template <typename Tag>
0024 struct next_impl;
0025
0026 template <>
0027 struct next_impl<nview_iterator_tag>
0028 {
0029 template <typename Iterator>
0030 struct apply
0031 {
0032 typedef typename Iterator::first_type first_type;
0033 typedef typename Iterator::sequence_type sequence_type;
0034
0035 typedef nview_iterator<sequence_type,
0036 typename result_of::next<first_type>::type> type;
0037
0038 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0039 static type
0040 call(Iterator const& i)
0041 {
0042 return type(i.seq);
0043 }
0044 };
0045 };
0046 }
0047
0048 }}
0049
0050 #endif