1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H
10 #define _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H
13 #include <__utility/integer_sequence.h>
16 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
17 # pragma GCC system_header
20 #ifndef _LIBCPP_CXX03_LANG
22 _LIBCPP_BEGIN_NAMESPACE_STD
24 template <size_t...> struct __tuple_indices
{};
26 template <size_t _Ep
, size_t _Sp
= 0>
27 struct __make_tuple_indices
29 static_assert(_Sp
<= _Ep
, "__make_tuple_indices input error");
30 typedef __make_indices_imp
<_Ep
, _Sp
> type
;
33 _LIBCPP_END_NAMESPACE_STD
35 #endif // _LIBCPP_CXX03_LANG
37 #endif // _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H