1/*=============================================================================
2 Copyright (c) 2009 Christopher Schmidt
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6==============================================================================*/
7
8#ifndef BOOST_FUSION_VIEW_JOINT_VIEW_DETAIL_DEREF_DATA_IMPL_HPP
9#define BOOST_FUSION_VIEW_JOINT_VIEW_DETAIL_DEREF_DATA_IMPL_HPP
10
11#include <boost/fusion/support/config.hpp>
12#include <boost/fusion/iterator/deref_data.hpp>
13
14namespace boost { namespace fusion { namespace extension
15{
16 template <typename>
17 struct deref_data_impl;
18
19 template <>
20 struct deref_data_impl<joint_view_iterator_tag>
21 {
22 template <typename It>
23 struct apply
24 {
25 typedef typename
26 result_of::deref_data<typename It::first_type>::type
27 type;
28
29 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
30 static type
31 call(It const& it)
32 {
33 return fusion::deref_data(it.first);
34 }
35 };
36 };
37}}}
38
39#endif
40

source code of include/boost/fusion/view/joint_view/detail/deref_data_impl.hpp