]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2009-2010 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_ADAPTED_STRUCT_DETAIL_KEY_OF_IMPL_HPP | |
9 | #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_KEY_OF_IMPL_HPP | |
10 | ||
11 | namespace boost { namespace fusion { namespace extension | |
12 | { | |
13 | template <typename> | |
14 | struct key_of_impl; | |
15 | ||
16 | template <> | |
17 | struct key_of_impl<struct_iterator_tag> | |
18 | { | |
19 | template <typename It> | |
20 | struct apply | |
21 | : extension::struct_assoc_key< | |
22 | typename remove_const<typename It::seq_type>::type | |
23 | , It::index::value | |
24 | > | |
25 | {}; | |
26 | }; | |
27 | }}} | |
28 | ||
29 | #endif |