Line | |
---|
1 | /*=============================================================================
|
---|
2 | Copyright (c) 2003 Joel de Guzman
|
---|
3 |
|
---|
4 | Use, modification and distribution is subject to the Boost Software
|
---|
5 | License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
---|
6 | http://www.boost.org/LICENSE_1_0.txt)
|
---|
7 | ==============================================================================*/
|
---|
8 | #if !defined(FUSION_ITERATOR_DETAIL_TUPLE_ITERATOR_VALUE_TRAITS_HPP)
|
---|
9 | #define FUSION_ITERATOR_DETAIL_TUPLE_ITERATOR_VALUE_TRAITS_HPP
|
---|
10 |
|
---|
11 | #include <boost/spirit/fusion/detail/config.hpp>
|
---|
12 | #include <boost/spirit/fusion/detail/access.hpp>
|
---|
13 | #include <boost/spirit/fusion/sequence/tuple_element.hpp>
|
---|
14 |
|
---|
15 | namespace boost { namespace fusion
|
---|
16 | {
|
---|
17 | struct tuple_iterator_tag;
|
---|
18 |
|
---|
19 | namespace detail
|
---|
20 | {
|
---|
21 | template <int N>
|
---|
22 | struct tuple_access;
|
---|
23 | }
|
---|
24 |
|
---|
25 | namespace detail
|
---|
26 | {
|
---|
27 | template <typename Iterator>
|
---|
28 | struct tuple_iterator_value_traits_impl
|
---|
29 | {
|
---|
30 | typedef FUSION_GET_INDEX(Iterator) index;
|
---|
31 | typedef FUSION_GET_TUPLE(Iterator) tuple_;
|
---|
32 |
|
---|
33 | typedef BOOST_DEDUCED_TYPENAME
|
---|
34 | tuple_element<
|
---|
35 | FUSION_GET_VALUE(index), tuple_>::type
|
---|
36 | type;
|
---|
37 | };
|
---|
38 | }
|
---|
39 |
|
---|
40 | namespace meta
|
---|
41 | {
|
---|
42 | template <typename Tag>
|
---|
43 | struct value_impl;
|
---|
44 |
|
---|
45 | template <>
|
---|
46 | struct value_impl<tuple_iterator_tag>
|
---|
47 | {
|
---|
48 | template <typename Iterator>
|
---|
49 | struct apply : detail::tuple_iterator_value_traits_impl<Iterator> {};
|
---|
50 | };
|
---|
51 | }
|
---|
52 | }}
|
---|
53 |
|
---|
54 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.