]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/view/joint_view/detail/deref_data_impl.hpp
Updated boost to v1.55.0
[rsem.git] / boost / fusion / view / joint_view / detail / deref_data_impl.hpp
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/iterator/deref_data.hpp>
12
13 namespace boost { namespace fusion { namespace extension
14 {
15     template <typename>
16     struct deref_data_impl;
17
18     template <>
19     struct deref_data_impl<joint_view_iterator_tag>
20     {
21         template <typename It>
22         struct apply
23         {
24             typedef typename
25                 result_of::deref_data<typename It::first_type>::type
26             type;
27
28             static type
29             call(It const& it)
30             {
31                 return fusion::deref_data(it.first);
32             }
33         };
34     };
35 }}}
36
37 #endif