1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef _LIBCPP___TUPLE_IGNORE_H
10 #define _LIBCPP___TUPLE_IGNORE_H
12 #include <__cxx03/__config>
14 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
15 # pragma GCC system_header
18 #ifndef _LIBCPP_CXX03_LANG
20 _LIBCPP_BEGIN_NAMESPACE_STD
22 struct __ignore_type
{
24 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14
const __ignore_type
& operator=(const _Tp
&) const noexcept
{
29 # if _LIBCPP_STD_VER >= 17
30 inline constexpr __ignore_type ignore
;
32 constexpr __ignore_type ignore
;
35 _LIBCPP_END_NAMESPACE_STD
37 #endif // _LIBCPP_CXX03_LANG
39 #endif // _LIBCPP___TUPLE_IGNORE_H