Path: blob/main/contrib/llvm-project/libcxx/include/__tuple/tuple_indices.h
35233 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H9#define _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H1011#include <__config>12#include <__utility/integer_sequence.h>13#include <cstddef>1415#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)16# pragma GCC system_header17#endif1819#ifndef _LIBCPP_CXX03_LANG2021_LIBCPP_BEGIN_NAMESPACE_STD2223template <size_t...>24struct __tuple_indices {};2526template <size_t _Ep, size_t _Sp = 0>27struct __make_tuple_indices {28static_assert(_Sp <= _Ep, "__make_tuple_indices input error");29typedef __make_indices_imp<_Ep, _Sp> type;30};3132_LIBCPP_END_NAMESPACE_STD3334#endif // _LIBCPP_CXX03_LANG3536#endif // _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H373839