You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB
C++

//
// Copyright (c) 2021 Dmitry Arkhipov (grisumbras@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/json
//
#ifndef BOOST_JSON_DETAIL_INDEX_SEQUENCE_HPP
#define BOOST_JSON_DETAIL_INDEX_SEQUENCE_HPP
#include <boost/json/detail/config.hpp>
#ifndef BOOST_JSON_STANDALONE
# include <boost/mp11/integer_sequence.hpp>
#else
# include <type_traits>
#endif
BOOST_JSON_NS_BEGIN
namespace detail {
#if ! defined(BOOST_JSON_STANDALONE)
template <std::size_t... Is>
using index_sequence = boost::mp11::index_sequence<Is...>;
template <std::size_t N>
using make_index_sequence = boost::mp11::make_index_sequence<N>;
#else
template <std::size_t... Is>
using index_sequence = std::index_sequence<Is...>;
template <std::size_t N>
using make_index_sequence = std::make_index_sequence<N>;
#endif
} // detail
BOOST_JSON_NS_END
#endif // BOOST_JSON_DETAIL_INDEX_SEQUENCE_HPP