]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/fusion/adapted/array/at_impl.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / fusion / adapted / array / at_impl.hpp
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_AT_IMPL_HPP
9 #define BOOST_FUSION_ADAPTED_ARRAY_AT_IMPL_HPP
10
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/type_traits/add_reference.hpp>
13 #include <boost/type_traits/remove_extent.hpp>
14
15 namespace boost { namespace fusion { namespace extension
16 {
17 template<typename>
18 struct at_impl;
19
20 template<>
21 struct at_impl<po_array_tag>
22 {
23 template<typename Seq, typename N>
24 struct apply
25 {
26 typedef typename
27 add_reference<typename remove_extent<Seq>::type>::type
28 type;
29
30 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
31 static type
32 call(Seq& seq)
33 {
34 return seq[N::value];
35 }
36 };
37 };
38 }}}
39
40 #endif