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
24namespace boost {
25namespace context {
26namespace detail {
27
28#if ! defined(BOOST_CONTEXT_NO_CXX14_INTEGER_SEQUENCE)
29template< std::size_t ... I >
30using index_sequence = std::index_sequence< I ... >;
31template< std::size_t I >
32using make_index_sequence = std::make_index_sequence< I >;
33template< typename ... T >
34using index_sequence_for = std::index_sequence_for< T ... >;
35#else
36template< std::size_t ... I >
37using index_sequence = mp11::index_sequence< I ... >;
38template< std::size_t I >
39using make_index_sequence = mp11::make_index_sequence< I >;
40template< typename ... T >
41using 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
51

source code of boost/libs/context/include/boost/context/detail/index_sequence.hpp