Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:41:55

0001 /*=============================================================================
0002     Copyright (c) 2009 Hartmut Kaiser
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 
0008 #if !defined(BOOST_FUSION_NVIEW_END_IMPL_SEP_24_2009_0140PM)
0009 #define BOOST_FUSION_NVIEW_END_IMPL_SEP_24_2009_0140PM
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/sequence/intrinsic/end.hpp>
0013 
0014 namespace boost { namespace fusion
0015 {
0016     struct nview_tag;
0017 
0018     template <typename Sequence, typename Pos>
0019     struct nview_iterator;
0020 
0021     namespace extension
0022     {
0023         template <typename Tag>
0024         struct end_impl;
0025 
0026         // Unary Version
0027         template <>
0028         struct end_impl<nview_tag>
0029         {
0030             template <typename Sequence>
0031             struct apply
0032             {
0033                 typedef typename Sequence::index_type index_type;
0034 
0035                 typedef nview_iterator<Sequence,
0036                     typename result_of::end<index_type>::type> type;
0037 
0038                 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0039                 static type call(Sequence& s)
0040                 {
0041                     return type(s);
0042                 }
0043             };
0044         };
0045     }
0046 
0047 }}
0048 
0049 #endif
0050 
0051