Path: blob/main/contrib/llvm-project/libcxx/include/__tuple/ignore.h
35233 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_IGNORE_H9#define _LIBCPP___TUPLE_IGNORE_H1011#include <__config>1213#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)14# pragma GCC system_header15#endif1617#ifndef _LIBCPP_CXX03_LANG1819_LIBCPP_BEGIN_NAMESPACE_STD2021struct __ignore_type {22template <class _Tp>23_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const __ignore_type& operator=(const _Tp&) const noexcept {24return *this;25}26};2728# if _LIBCPP_STD_VER >= 1729inline constexpr __ignore_type ignore;30# else31constexpr __ignore_type ignore;32# endif3334_LIBCPP_END_NAMESPACE_STD3536#endif // _LIBCPP_CXX03_LANG3738#endif // _LIBCPP___TUPLE_IGNORE_H394041