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)
7 #ifndef BOOST_CONTEXT_DETAIL_INDEX_SEQUENCE_H
8 #define BOOST_CONTEXT_DETAIL_INDEX_SEQUENCE_H
12 #include <boost/config.hpp>
14 #include <boost/context/detail/config.hpp>
16 #if defined(BOOST_CONTEXT_NO_CXX14_INTEGER_SEQUENCE)
17 #include <boost/mp11/integer_sequence.hpp>
20 #ifdef BOOST_HAS_ABI_HEADERS
21 # include BOOST_ABI_PREFIX
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 ... >;
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 ... >;
46 #ifdef BOOST_HAS_ABI_HEADERS
47 #include BOOST_ABI_SUFFIX
50 #endif // BOOST_CONTEXT_DETAIL_INDEX_SEQUENCE_H