Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/fusion/view/joint_view/detail/deref_data_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) 2009 Christopher Schmidt
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 #ifndef BOOST_FUSION_VIEW_JOINT_VIEW_DETAIL_DEREF_DATA_IMPL_HPP
0009 #define BOOST_FUSION_VIEW_JOINT_VIEW_DETAIL_DEREF_DATA_IMPL_HPP
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/iterator/deref_data.hpp>
0013 
0014 namespace boost { namespace fusion { namespace extension
0015 {
0016     template <typename>
0017     struct deref_data_impl;
0018 
0019     template <>
0020     struct deref_data_impl<joint_view_iterator_tag>
0021     {
0022         template <typename It>
0023         struct apply
0024         {
0025             typedef typename
0026                 result_of::deref_data<typename It::first_type>::type
0027             type;
0028 
0029             BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0030             static type
0031             call(It const& it)
0032             {
0033                 return fusion::deref_data(it.first);
0034             }
0035         };
0036     };
0037 }}}
0038 
0039 #endif