codekingpro/portable-devtools
114k
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// SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCUDACXX___UTILITY_DECLVAL_H11#define _LIBCUDACXX___UTILITY_DECLVAL_H12 13#ifndef __cuda_std__14#include <__config>15#endif // __cuda_std__16 17#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)18# pragma GCC system_header19#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)20# pragma clang system_header21#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)22# pragma system_header23#endif // no system header24 25_LIBCUDACXX_BEGIN_NAMESPACE_STD26 27// Suppress deprecation notice for volatile-qualified return type resulting28// from volatile-qualified types _Tp.29_LIBCUDACXX_SUPPRESS_DEPRECATED_PUSH30template <class _Tp>31_LIBCUDACXX_INLINE_VISIBILITY _Tp&& __declval(int);32template <class _Tp>33_LIBCUDACXX_INLINE_VISIBILITY _Tp __declval(long);34_LIBCUDACXX_SUPPRESS_DEPRECATED_POP35 36template <class _Tp>37_LIBCUDACXX_INLINE_VISIBILITY decltype(_CUDA_VSTD::__declval<_Tp>(0)) declval() noexcept;38 39_LIBCUDACXX_END_NAMESPACE_STD40 41#endif // _LIBCUDACXX___UTILITY_DECLVAL_H42 