]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/context/detail/index_sequence.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / context / detail / index_sequence.hpp
1
2 // Copyright Oliver Kowalke 2014.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6
7 #ifndef BOOST_CONTEXT_DETAIL_INDEX_SEQUENCE_H
8 #define BOOST_CONTEXT_DETAIL_INDEX_SEQUENCE_H
9
10 #include <cstddef>
11
12 #include <boost/config.hpp>
13
14 #include <boost/context/detail/config.hpp>
15
16 #if defined(BOOST_CONTEXT_NO_CXX14_INTEGER_SEQUENCE)
17 #include <boost/mp11/integer_sequence.hpp>
18 #endif
19
20 #ifdef BOOST_HAS_ABI_HEADERS
21 # include BOOST_ABI_PREFIX
22 #endif
23
24 namespace boost {
25 namespace context {
26 namespace detail {
27
28 #if ! defined(BOOST_CONTEXT_NO_CXX14_INTEGER_SEQUENCE)
29 template< std::size_t ... I >
30 using index_sequence = std::index_sequence< I ... >;
31 template< std::size_t I >
32 using make_index_sequence = std::make_index_sequence< I >;
33 template< typename ... T >
34 using index_sequence_for = std::index_sequence_for< T ... >;
35 #else
36 template< std::size_t ... I >
37 using index_sequence = mp11::index_sequence< I ... >;
38 template< std::size_t I >
39 using make_index_sequence = mp11::make_index_sequence< I >;
40 template< typename ... T >
41 using index_sequence_for = mp11::index_sequence_for< T ... >;
42 #endif
43
44 }}}
45
46 #ifdef BOOST_HAS_ABI_HEADERS
47 #include BOOST_ABI_SUFFIX
48 #endif
49
50 #endif // BOOST_CONTEXT_DETAIL_INDEX_SEQUENCE_H