]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/include/boost/fusion/adapted/std_array/detail/size_impl.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / adapted / std_array / detail / size_impl.hpp
1 /*=============================================================================
2 Copyright (c) 2013 Mateusz Loskot
3 Copyright (c) 2001-2011 Joel de Guzman
4 Copyright (c) 2005-2006 Dan Marsden
5
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
9 #if !defined(BOOST_FUSION_STD_ARRAY_SIZE_IMPL_01062013_1700)
10 #define BOOST_FUSION_STD_ARRAY_SIZE_IMPL_01062013_1700
11
12 #include <boost/fusion/adapted/std_array/detail/array_size.hpp>
13 #include <boost/type_traits/remove_const.hpp>
14
15 namespace boost { namespace fusion {
16
17 struct std_array_tag;
18
19 namespace extension
20 {
21 template<typename T>
22 struct size_impl;
23
24 template<>
25 struct size_impl<std_array_tag>
26 {
27 template<typename Sequence>
28 struct apply
29 : mpl::int_
30 <
31 std_array_size
32 <
33 typename remove_const<Sequence>::type
34 >::value
35 >
36 {};
37 };
38 }
39 }}
40
41 #endif