]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 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_ARRAY_SIZE_IMPL_HPP | |
9 | #define BOOST_FUSION_ADAPTED_ARRAY_SIZE_IMPL_HPP | |
10 | ||
11 | #include <boost/fusion/support/config.hpp> | |
12 | #include <boost/type_traits/rank.hpp> | |
13 | #include <boost/type_traits/extent.hpp> | |
14 | ||
15 | namespace boost { namespace fusion { namespace extension | |
16 | { | |
17 | template<typename> | |
18 | struct size_impl; | |
19 | ||
20 | template<> | |
21 | struct size_impl<po_array_tag> | |
22 | { | |
23 | template<typename Seq> | |
24 | struct apply | |
25 | : extent<Seq,rank<Seq>::value-1> | |
26 | {}; | |
27 | }; | |
28 | }}} | |
29 | ||
30 | #endif |