]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2001-2011 Joel de Guzman | |
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(BOOST_FUSION_SIZE_IMPL_09272006_0724) | |
8 | #define BOOST_FUSION_SIZE_IMPL_09272006_0724 | |
9 | ||
10 | #include <boost/fusion/support/config.hpp> | |
11 | #include <boost/tuple/tuple.hpp> | |
12 | #include <boost/mpl/int.hpp> | |
13 | ||
14 | namespace boost { namespace fusion | |
15 | { | |
16 | struct boost_tuple_tag; | |
17 | ||
18 | namespace extension | |
19 | { | |
20 | template<typename T> | |
21 | struct size_impl; | |
22 | ||
23 | template <> | |
24 | struct size_impl<boost_tuple_tag> | |
25 | { | |
26 | template <typename Sequence> | |
27 | struct apply : mpl::int_<tuples::length<Sequence>::value> {}; | |
28 | }; | |
29 | } | |
30 | }} | |
31 | ||
32 | #endif |