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_SEQUENCE_DETAIL_TUPLE_VALUE_AT_TRAITS_IPP)
|
---|
9 | #define FUSION_SEQUENCE_DETAIL_TUPLE_VALUE_AT_TRAITS_IPP
|
---|
10 |
|
---|
11 | #include <boost/spirit/fusion/detail/config.hpp>
|
---|
12 | #include <boost/mpl/at.hpp>
|
---|
13 |
|
---|
14 | namespace boost { namespace fusion
|
---|
15 | {
|
---|
16 | struct tuple_tag;
|
---|
17 |
|
---|
18 | namespace meta
|
---|
19 | {
|
---|
20 | template <typename Tag>
|
---|
21 | struct value_at_impl;
|
---|
22 |
|
---|
23 | template <>
|
---|
24 | struct value_at_impl<tuple_tag>
|
---|
25 | {
|
---|
26 | template <typename Tuple, int N>
|
---|
27 | struct apply
|
---|
28 | {
|
---|
29 | typedef typename
|
---|
30 | mpl::at_c<FUSION_GET_TYPES(Tuple), N>::type
|
---|
31 | type;
|
---|
32 | };
|
---|
33 | };
|
---|
34 | }
|
---|
35 | }}
|
---|
36 |
|
---|
37 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.