]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/adapted/std_array/detail/end_impl.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / adapted / std_array / detail / end_impl.hpp
CommitLineData
7c673cae
FG
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_END_OF_IMPL_01062013_1700)
10#define BOOST_FUSION_STD_ARRAY_END_OF_IMPL_01062013_1700
11
12#include <boost/fusion/adapted/std_array/std_array_iterator.hpp>
13#include <boost/fusion/adapted/std_array/detail/array_size.hpp>
14#include <boost/type_traits/remove_const.hpp>
15
16namespace boost { namespace fusion {
17
18 struct std_array_tag;
19
20 namespace extension
21 {
22 template <typename Tag>
23 struct end_impl;
24
25 template <>
26 struct end_impl<std_array_tag>
27 {
28 template <typename Sequence>
29 struct apply
30 {
31 typedef typename remove_const<Sequence>::type seq_type;
32 static int const size = std_array_size<seq_type>::value;
33 typedef std_array_iterator<Sequence, size> type;
34
35 static type
36 call(Sequence& v)
37 {
38 return type(v);
39 }
40 };
41 };
42 }
43}}
44
45#endif