Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:17

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
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(FUSION_REVERSE_07212005_1230)
0008 #define FUSION_REVERSE_07212005_1230
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/view/reverse_view/reverse_view.hpp>
0012 #include <boost/fusion/support/is_sequence.hpp>
0013 #include <boost/utility/enable_if.hpp>
0014 
0015 namespace boost { namespace fusion
0016 {
0017     namespace result_of
0018     {
0019         template <typename Sequence>
0020         struct reverse
0021         {
0022             typedef reverse_view<Sequence> type;
0023         };
0024     }
0025 
0026     template <typename Sequence>
0027     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0028     inline typename
0029         enable_if<
0030             traits::is_sequence<Sequence>
0031           , reverse_view<Sequence const>
0032         >::type
0033     reverse(Sequence const& view)
0034     {
0035         return reverse_view<Sequence const>(view);
0036     }
0037 }}
0038 
0039 #endif
0040