tuple_indices.h 1019 B

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