// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, 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 // //===----------------------------------------------------------------------===// #ifndef _LIBCUDACXX___MEMORY_POINTER_TRAITS_H #define _LIBCUDACXX___MEMORY_POINTER_TRAITS_H #ifndef __cuda_std__ #include <__config> #endif //__cuda_std__ #include "../__memory/addressof.h" #include "../__type_traits/conjunction.h" #include "../__type_traits/conditional.h" #include "../__type_traits/decay.h" #include "../__type_traits/enable_if.h" #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_class.h" #include "../__type_traits/is_function.h" #include "../__type_traits/is_void.h" #include "../__type_traits/void_t.h" #include "../__utility/declval.h" #include "../cstddef" #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 _LIBCUDACXX_BEGIN_NAMESPACE_STD template struct __has_element_type : false_type {}; template struct __has_element_type<_Tp, __void_t> : true_type {}; template ::value> struct __pointer_traits_element_type; template struct __pointer_traits_element_type<_Ptr, true> { typedef _LIBCUDACXX_NODEBUG_TYPE typename _Ptr::element_type type; }; #ifndef _LIBCUDACXX_HAS_NO_VARIADICS template