14#ifndef ROOT_RIntegerSequence
15#define ROOT_RIntegerSequence
17#include <RConfigure.h>
20#ifdef R__HAS_STD_INDEX_SEQUENCE
34template <
class _IdxType, _IdxType... _Values>
36 template <
template <
class _OIdxType, _OIdxType...>
class _ToIndexSeq,
class _ToIndexType>
37 using __convert = _ToIndexSeq<_ToIndexType, _Values...>;
40template<
typename _Tp,
size_t ..._Extra>
43template<
typename _Tp, _Tp ..._Np,
size_t ..._Extra>
47 sizeof...(_Np) + _Np...,
48 2 *
sizeof...(_Np) + _Np...,
49 3 *
sizeof...(_Np) + _Np...,
50 4 *
sizeof...(_Np) + _Np...,
51 5 *
sizeof...(_Np) + _Np...,
52 6 *
sizeof...(_Np) + _Np...,
53 7 *
sizeof...(_Np) + _Np...,
58template<
size_t _Np>
struct __make :
__parity<_Np % 8>::template __pmake<_Np> {};
72 struct __pmake :
__repeat<typename __make<_Np / 8>::type> {
75template<>
struct __parity<1> {
template<
size_t _Np>
struct __pmake :
__repeat<typename __make<_Np / 8>::type, _Np - 1> {}; };
76template<>
struct __parity<2> {
template<
size_t _Np>
struct __pmake :
__repeat<typename __make<_Np / 8>::type, _Np - 2, _Np - 1> {}; };
77template<>
struct __parity<3> {
template<
size_t _Np>
struct __pmake :
__repeat<typename __make<_Np / 8>::type, _Np - 3, _Np - 2, _Np - 1> {}; };
78template<>
struct __parity<4> {
template<
size_t _Np>
struct __pmake :
__repeat<typename __make<_Np / 8>::type, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
79template<>
struct __parity<5> {
template<
size_t _Np>
struct __pmake :
__repeat<typename __make<_Np / 8>::type, _Np - 5, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
80template<>
struct __parity<6> {
template<
size_t _Np>
struct __pmake :
__repeat<typename __make<_Np / 8>::type, _Np - 6, _Np - 5, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
81template<>
struct __parity<7> {
template<
size_t _Np>
struct __pmake :
__repeat<typename __make<_Np / 8>::type, _Np - 7, _Np - 6, _Np - 5, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
88template <
class _Tp, _Tp... _Ip>
91 static_assert(is_integral<_Tp>::value,
"std::integer_sequence can only be instantiated with an integral type");
92 static constexpr size_t size() noexcept {
return sizeof...(_Ip); }
95template <
size_t... _Ip>
98template <
typename _Tp, _Tp _Np>
102template <
class _Tp, _Tp _Ep>
104 static_assert(is_integral<_Tp>::value,
"std::make_integer_sequence can only be instantiated with an integral type");
105 static_assert(0 <= _Ep,
"std::make_integer_sequence must have a non-negative sequence length");
111template <
class _Tp, _Tp _Ep>
114template <
class _Tp, _Tp _Np>
120template <
class... _Tp>
Namespace for new ROOT classes and functions.
typename __make_integer_sequence_checked< _Tp, _Ep >::type __make_integer_sequence
make_index_sequence< sizeof...(_Tp)> index_sequence_for
__make_integer_sequence< _Tp, _Np > make_integer_sequence
make_integer_sequence< size_t, _Np > make_index_sequence
typename ROOT::Detail::__make< _Np >::type::template __convert< integer_sequence, _Tp > __make_integer_sequence_unchecked
_ToIndexSeq< _ToIndexType, _Values... > __convert
__integer_sequence< size_t > type
__integer_sequence< size_t, 0 > type
__integer_sequence< size_t, 0, 1 > type
__integer_sequence< size_t, 0, 1, 2 > type
__integer_sequence< size_t, 0, 1, 2, 3 > type
__integer_sequence< size_t, 0, 1, 2, 3, 4 > type
__integer_sequence< size_t, 0, 1, 2, 3, 4, 5 > type
__integer_sequence< size_t, 0, 1, 2, 3, 4, 5, 6 > type
static constexpr size_t size() noexcept