Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:14:05

0001 //===----------------------------------------------------------------------===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef _LIBCPP___TUPLE_TUPLE_LIKE_EXT_H
0010 #define _LIBCPP___TUPLE_TUPLE_LIKE_EXT_H
0011 
0012 #include <__config>
0013 #include <__cstddef/size_t.h>
0014 #include <__fwd/array.h>
0015 #include <__fwd/pair.h>
0016 #include <__fwd/tuple.h>
0017 #include <__tuple/tuple_types.h>
0018 #include <__type_traits/integral_constant.h>
0019 
0020 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0021 #  pragma GCC system_header
0022 #endif
0023 
0024 _LIBCPP_BEGIN_NAMESPACE_STD
0025 
0026 template <class _Tp>
0027 struct __tuple_like_ext : false_type {};
0028 
0029 template <class _Tp>
0030 struct __tuple_like_ext<const _Tp> : public __tuple_like_ext<_Tp> {};
0031 template <class _Tp>
0032 struct __tuple_like_ext<volatile _Tp> : public __tuple_like_ext<_Tp> {};
0033 template <class _Tp>
0034 struct __tuple_like_ext<const volatile _Tp> : public __tuple_like_ext<_Tp> {};
0035 
0036 #ifndef _LIBCPP_CXX03_LANG
0037 template <class... _Tp>
0038 struct __tuple_like_ext<tuple<_Tp...> > : true_type {};
0039 #endif
0040 
0041 template <class _T1, class _T2>
0042 struct __tuple_like_ext<pair<_T1, _T2> > : true_type {};
0043 
0044 template <class _Tp, size_t _Size>
0045 struct __tuple_like_ext<array<_Tp, _Size> > : true_type {};
0046 
0047 template <class... _Tp>
0048 struct __tuple_like_ext<__tuple_types<_Tp...> > : true_type {};
0049 
0050 _LIBCPP_END_NAMESPACE_STD
0051 
0052 #endif // _LIBCPP___TUPLE_TUPLE_LIKE_EXT_H