//===----------------------------------------------------------------------===// // // Part of libcu++, the C++ Standard Library for your entire system, // under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. // //===----------------------------------------------------------------------===// #ifndef _CUDA___COMPLEX_TRAITS_H #define _CUDA___COMPLEX_TRAITS_H #include #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) # pragma clang system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) # pragma system_header #endif // no system header #include #include #include #include #include #include #include #include #include _CCCL_BEGIN_NAMESPACE_CUDA // __is_complex_compatible_tuple_like template _CCCL_CONCEPT __is_complex_compatible_tuple_like = _CCCL_REQUIRES_EXPR( (_Tp))(requires(::cuda::std::tuple_size<_Tp>::value == 2), requires(::cuda::std::is_same_v<::cuda::std::remove_cvref_t<::cuda::std::tuple_element_t<0, _Tp>>, ::cuda::std::remove_cvref_t<::cuda::std::tuple_element_t<1, _Tp>>>)); // __complex_tuple_like_value_type template using __complex_tuple_like_value_type_t = ::cuda::std::remove_cvref_t<::cuda::std::tuple_element_t<0, _Tp>>; // __is_cccl_complex_v template inline constexpr bool __is_cccl_complex_v = __is_cuda_complex_v<_Tp> || ::cuda::std::__is_cuda_std_complex_v<_Tp>; // __is_any_complex_v template inline constexpr bool __is_any_complex_v = ::cuda::std::__is_std_complex_v<_Tp> || __is_cccl_complex_v<_Tp>; _CCCL_END_NAMESPACE_CUDA #include #endif // _CUDA___COMPLEX_TRAITS_H