1 | //===----------------------------------------------------------------------===// |
2 | // |
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 |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #ifndef _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H |
10 | #define _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H |
11 | |
12 | #include <__config> |
13 | #include <__utility/integer_sequence.h> |
14 | #include <cstddef> |
15 | |
16 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
17 | # pragma GCC system_header |
18 | #endif |
19 | |
20 | #ifndef _LIBCPP_CXX03_LANG |
21 | |
22 | _LIBCPP_BEGIN_NAMESPACE_STD |
23 | |
24 | template <size_t...> |
25 | struct __tuple_indices {}; |
26 | |
27 | template <size_t _Ep, size_t _Sp = 0> |
28 | struct __make_tuple_indices { |
29 | static_assert(_Sp <= _Ep, "__make_tuple_indices input error" ); |
30 | typedef __make_indices_imp<_Ep, _Sp> type; |
31 | }; |
32 | |
33 | _LIBCPP_END_NAMESPACE_STD |
34 | |
35 | #endif // _LIBCPP_CXX03_LANG |
36 | |
37 | #endif // _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H |
38 | |