Warning, file /include/boost/fusion/view/single_view/detail/advance_impl.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008 #if !defined(BOOST_FUSION_SINGLE_VIEW_ADVANCE_IMPL_JUL_07_2011_1348PM)
0009 #define BOOST_FUSION_SINGLE_VIEW_ADVANCE_IMPL_JUL_07_2011_1348PM
0010
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/mpl/plus.hpp>
0013
0014 namespace boost { namespace fusion
0015 {
0016 struct single_view_iterator_tag;
0017
0018 template <typename SingleView, typename Pos>
0019 struct single_view_iterator;
0020
0021 namespace extension
0022 {
0023 template<typename Tag>
0024 struct advance_impl;
0025
0026 template<>
0027 struct advance_impl<single_view_iterator_tag>
0028 {
0029 template<typename Iterator, typename Dist>
0030 struct apply
0031 {
0032 typedef single_view_iterator<
0033 typename Iterator::single_view_type,
0034 typename mpl::plus<typename Iterator::position, Dist>::type>
0035 type;
0036
0037 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0038 static type
0039 call(Iterator const& i)
0040 {
0041 return type(i.view);
0042 }
0043 };
0044 };
0045 }
0046
0047 }}
0048
0049 #endif