Path: blob/main/contrib/llvm-project/libcxx/include/__tuple/tuple_like_ext.h
35234 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_TUPLE_LIKE_EXT_H9#define _LIBCPP___TUPLE_TUPLE_LIKE_EXT_H1011#include <__config>12#include <__fwd/array.h>13#include <__fwd/pair.h>14#include <__fwd/tuple.h>15#include <__tuple/tuple_types.h>16#include <__type_traits/integral_constant.h>17#include <cstddef>1819#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)20# pragma GCC system_header21#endif2223_LIBCPP_BEGIN_NAMESPACE_STD2425template <class _Tp>26struct __tuple_like_ext : false_type {};2728template <class _Tp>29struct __tuple_like_ext<const _Tp> : public __tuple_like_ext<_Tp> {};30template <class _Tp>31struct __tuple_like_ext<volatile _Tp> : public __tuple_like_ext<_Tp> {};32template <class _Tp>33struct __tuple_like_ext<const volatile _Tp> : public __tuple_like_ext<_Tp> {};3435#ifndef _LIBCPP_CXX03_LANG36template <class... _Tp>37struct __tuple_like_ext<tuple<_Tp...> > : true_type {};38#endif3940template <class _T1, class _T2>41struct __tuple_like_ext<pair<_T1, _T2> > : true_type {};4243template <class _Tp, size_t _Size>44struct __tuple_like_ext<array<_Tp, _Size> > : true_type {};4546template <class... _Tp>47struct __tuple_like_ext<__tuple_types<_Tp...> > : true_type {};4849_LIBCPP_END_NAMESPACE_STD5051#endif // _LIBCPP___TUPLE_TUPLE_LIKE_EXT_H525354