Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:34:41

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_ADAPT_DEREF_TRAITS_05062005_0900)
0008 #define FUSION_ADAPT_DEREF_TRAITS_05062005_0900
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/iterator/deref.hpp>
0012 
0013 namespace boost { namespace fusion { namespace detail
0014 {
0015     struct adapt_deref_traits
0016     {
0017         template <typename Iterator>
0018         struct apply
0019         {
0020             typedef typename
0021                 result_of::deref<typename Iterator::first_type>::type
0022             type;
0023 
0024             BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0025             static type
0026             call(Iterator const& i)
0027             {
0028                 return *i.first;
0029             }
0030         };
0031     };
0032 }}}
0033 
0034 #endif
0035 
0036