Warning: This file is not a C or C++ file. It does not have highlighting.
| 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 | |
| 9 | #ifndef _LIBCPP___CXX03___TUPLE_TUPLE_ELEMENT_H |
| 10 | #define _LIBCPP___CXX03___TUPLE_TUPLE_ELEMENT_H |
| 11 | |
| 12 | #include <__cxx03/__config> |
| 13 | #include <__cxx03/__tuple/tuple_indices.h> |
| 14 | #include <__cxx03/__tuple/tuple_types.h> |
| 15 | #include <__cxx03/cstddef> |
| 16 | |
| 17 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 18 | # pragma GCC system_header |
| 19 | #endif |
| 20 | |
| 21 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 22 | |
| 23 | template <size_t _Ip, class _Tp> |
| 24 | struct _LIBCPP_TEMPLATE_VIS tuple_element; |
| 25 | |
| 26 | template <size_t _Ip, class _Tp> |
| 27 | struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const _Tp> { |
| 28 | typedef _LIBCPP_NODEBUG const typename tuple_element<_Ip, _Tp>::type type; |
| 29 | }; |
| 30 | |
| 31 | template <size_t _Ip, class _Tp> |
| 32 | struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, volatile _Tp> { |
| 33 | typedef _LIBCPP_NODEBUG volatile typename tuple_element<_Ip, _Tp>::type type; |
| 34 | }; |
| 35 | |
| 36 | template <size_t _Ip, class _Tp> |
| 37 | struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, const volatile _Tp> { |
| 38 | typedef _LIBCPP_NODEBUG const volatile typename tuple_element<_Ip, _Tp>::type type; |
| 39 | }; |
| 40 | |
| 41 | _LIBCPP_END_NAMESPACE_STD |
| 42 | |
| 43 | #endif // _LIBCPP___CXX03___TUPLE_TUPLE_ELEMENT_H |
| 44 |
Warning: This file is not a C or C++ file. It does not have highlighting.
