brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 2b91e60 Raw
48 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef _LIBCPP___CXX03___TUPLE_TUPLE_LIKE_EXT_H10#define _LIBCPP___CXX03___TUPLE_TUPLE_LIKE_EXT_H11 12#include <__cxx03/__config>13#include <__cxx03/__fwd/array.h>14#include <__cxx03/__fwd/pair.h>15#include <__cxx03/__fwd/tuple.h>16#include <__cxx03/__tuple/tuple_types.h>17#include <__cxx03/__type_traits/integral_constant.h>18#include <__cxx03/cstddef>19 20#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)21#  pragma GCC system_header22#endif23 24_LIBCPP_BEGIN_NAMESPACE_STD25 26template <class _Tp>27struct __tuple_like_ext : false_type {};28 29template <class _Tp>30struct __tuple_like_ext<const _Tp> : public __tuple_like_ext<_Tp> {};31template <class _Tp>32struct __tuple_like_ext<volatile _Tp> : public __tuple_like_ext<_Tp> {};33template <class _Tp>34struct __tuple_like_ext<const volatile _Tp> : public __tuple_like_ext<_Tp> {};35 36template <class _T1, class _T2>37struct __tuple_like_ext<pair<_T1, _T2> > : true_type {};38 39template <class _Tp, size_t _Size>40struct __tuple_like_ext<array<_Tp, _Size> > : true_type {};41 42template <class... _Tp>43struct __tuple_like_ext<__tuple_types<_Tp...> > : true_type {};44 45_LIBCPP_END_NAMESPACE_STD46 47#endif // _LIBCPP___CXX03___TUPLE_TUPLE_LIKE_EXT_H48