]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2011 Eric Niebler | |
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_SINGLE_VIEW_SIZE_IMPL_JUL_07_2011_1348PM) | |
8 | #define FUSION_SINGLE_VIEW_SIZE_IMPL_JUL_07_2011_1348PM | |
9 | ||
10 | namespace boost { namespace fusion | |
11 | { | |
12 | struct single_view_tag; | |
13 | ||
14 | namespace extension | |
15 | { | |
16 | template <typename Tag> | |
17 | struct size_impl; | |
18 | ||
19 | template <> | |
20 | struct size_impl<single_view_tag> | |
21 | { | |
22 | template <typename Sequence> | |
23 | struct apply | |
24 | { | |
25 | typedef mpl::int_<1> type; | |
26 | }; | |
27 | }; | |
28 | } | |
29 | }} | |
30 | ||
31 | #endif | |
32 | ||
33 |