]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/iterator/detail/adapt_deref_traits.hpp
Updated boost to v1.55.0
[rsem.git] / boost / fusion / iterator / detail / adapt_deref_traits.hpp
1 /*=============================================================================
2     Copyright (c) 2001-2011 Joel de Guzman
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 #if !defined(FUSION_ADAPT_DEREF_TRAITS_05062005_0900)
8 #define FUSION_ADAPT_DEREF_TRAITS_05062005_0900
9
10 #include <boost/fusion/iterator/deref.hpp>
11
12 namespace boost { namespace fusion { namespace detail
13 {
14     struct adapt_deref_traits
15     {
16         template <typename Iterator>
17         struct apply
18         {
19             typedef typename
20                 result_of::deref<typename Iterator::first_type>::type
21             type;
22
23             static type
24             call(Iterator const& i)
25             {
26                 return *i.first;
27             }
28         };
29     };
30 }}}
31
32 #endif
33
34