/usr/include/boost/fusion/view/repetitive_view/detail
NameSizeModeActions
begin_impl.hpp14840644editdlrm
deref_impl.hpp12600644editdlrm
end_impl.hpp14830644editdlrm
next_impl.hpp29890644editdlrm
value_of_impl.hpp10200644editdlrm
Edit: /usr/include/boost/fusion/view/repetitive_view/detail/next_impl.hpp (2989B)
/*============================================================================= Copyright (c) 2007 Tobias Schwinger Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(BOOST_FUSION_REPETITIVE_VIEW_NEXT_IMPL_HPP_INCLUDED) #define BOOST_FUSION_REPETITIVE_VIEW_NEXT_IMPL_HPP_INCLUDED #include #include #include namespace boost { namespace fusion { struct repetitive_view_iterator_tag; template struct repetitive_view_iterator; namespace extension { template struct next_impl; template <> struct next_impl { template::type>::value > struct apply_nonempty // { // advanvce to next position typedef repetitive_view_iterator< typename Iterator::sequence_type, typename result_of::next::type > type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type call(Iterator const& i) { return type(i.seq, next(i.pos)); } }; template struct apply_nonempty { // reset to beginning typedef repetitive_view_iterator< typename Iterator::sequence_type, typename Iterator::first_type > type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type call(Iterator const& i) { return type(i.seq); } }; template ::value > struct apply // : apply_nonempty { }; template struct apply { // eps^n = eps typedef Iterator type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type call(Iterator const& i) { return type(i); } }; }; } }} #endif