]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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_CONTAINER_MAP_DETAIL_VALUE_OF_IMPL_HPP | |
9 | #define BOOST_FUSION_CONTAINER_MAP_DETAIL_VALUE_OF_IMPL_HPP | |
10 | ||
11 | #include <boost/fusion/support/config.hpp> | |
12 | #include <boost/fusion/sequence/intrinsic/value_at.hpp> | |
13 | #include <boost/type_traits/is_const.hpp> | |
14 | ||
15 | namespace boost { namespace fusion { namespace extension | |
16 | { | |
17 | template <typename> | |
18 | struct value_of_impl; | |
19 | ||
20 | template <> | |
21 | struct value_of_impl<map_iterator_tag> | |
22 | { | |
23 | template <typename It> | |
24 | struct apply | |
25 | { | |
26 | typedef typename | |
27 | result_of::value_at< | |
28 | typename mpl::if_< | |
29 | is_const<typename It::seq_type> | |
30 | , typename It::seq_type::storage_type const | |
31 | , typename It::seq_type::storage_type | |
32 | >::type | |
33 | , typename It::index | |
34 | >::type | |
35 | type; | |
36 | }; | |
37 | }; | |
38 | }}} | |
39 | ||
40 | #endif |