Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/fusion/view/single_view/detail/prior_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     Copyright (c) 2011 Eric Niebler
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(BOOST_FUSION_SINGLE_VIEW_PRIOR_IMPL_JUL_07_2011_1348PM)
0008 #define BOOST_FUSION_SINGLE_VIEW_PRIOR_IMPL_JUL_07_2011_1348PM
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/mpl/prior.hpp>
0012 
0013 namespace boost { namespace fusion
0014 {
0015     struct single_view_iterator_tag;
0016 
0017     template <typename Sequence, typename Pos>
0018     struct single_view_iterator;
0019 
0020     namespace extension
0021     {
0022         template <typename Tag>
0023         struct prior_impl;
0024 
0025         template <>
0026         struct prior_impl<single_view_iterator_tag>
0027         {
0028             template <typename Iterator>
0029             struct apply 
0030             {
0031                 typedef single_view_iterator<
0032                     typename Iterator::single_view_type,
0033                     typename mpl::prior<typename Iterator::position>::type>
0034                 type;
0035 
0036                 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0037                 static type
0038                 call(Iterator const& i)
0039                 {
0040                     return type(i.view);
0041                 }
0042             };
0043         };
0044     }
0045 
0046 }}
0047 
0048 #endif