Home
last modified time | relevance | path

Searched refs:is_pointer (Results 1 – 25 of 57) sorted by relevance

123

/llvm-project/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
H A Dis_pointer.pass.cpp20 static_assert( std::is_pointer<T>::value, ""); in test_is_pointer()
21 static_assert( std::is_pointer<const T>::value, ""); in test_is_pointer()
22 static_assert( std::is_pointer<volatile T>::value, ""); in test_is_pointer()
23 static_assert( std::is_pointer<const volatile T>::value, ""); in test_is_pointer()
35 static_assert(!std::is_pointer<T>::value, ""); in test_is_not_pointer()
36 static_assert(!std::is_pointer<const T>::value, ""); in test_is_not_pointer()
37 static_assert(!std::is_pointer<volatile T>::value, ""); in test_is_not_pointer()
38 static_assert(!std::is_pointer<const volatile T>::value, ""); in test_is_not_pointer()
H A Dpointer.pass.cpp27 static_assert( std::is_pointer<T>::value, ""); in test_pointer_imp()
57 static_assert(!std::is_pointer<incomplete_type>::value, ""); in main()
H A Drvalue_ref.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_rvalue_ref()
H A Dlvalue_ref.pass.cpp27 static_assert(!std::is_pointer<T>::value, ""); in test_lvalue_ref()
H A Dunion.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_union_imp()
H A Denum.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_enum_imp()
H A Dfloating_point.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_floating_point_imp()
H A Dvoid.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_void_imp()
H A Dmember_object_pointer.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_member_object_pointer_imp()
H A Dclass.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_class_imp()
H A Dnullptr.pass.cpp29 static_assert(!std::is_pointer<T>::value, ""); in test_nullptr_imp()
H A Darray.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_array_imp()
H A Dintegral.pass.cpp26 static_assert(!std::is_pointer<T>::value, ""); in test_integral_imp()
H A Dfunction.pass.cpp35 static_assert(!std::is_pointer<T>::value, ""); in test()
H A Dmember_function_pointer.pass.cpp29 static_assert(!std::is_pointer<T>::value, "");
/llvm-project/libc/src/__support/CPP/type_traits/
H A Dis_pointer.h1 //===-- is_pointer type_traits ----------------------------------*- C++ -*-===//
19 // is_pointer
20 template <typename T> struct is_pointer : cpp::false_type {};
21 template <typename T> struct is_pointer<T *> : cpp::true_type {};
22 template <typename T> struct is_pointer<T *const> : cpp::true_type {};
23 template <typename T> struct is_pointer<T *volatile> : cpp::true_type {};
24 template <typename T> struct is_pointer<T *const volatile> : cpp::true_type {};
26 LIBC_INLINE_VAR constexpr bool is_pointer_v = is_pointer<T>::value;
18 template <typename T> struct is_pointer : cpp::false_type {}; global() struct
/llvm-project/libcxx/include/__type_traits/
H A Dis_pointer.h25 struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS is_pointer : _BoolConstant<__is_pointer(_Tp)> {}; struct
53 struct _LIBCPP_TEMPLATE_VIS is_pointer
58 inline constexpr bool is_pointer_v = is_pointer<_Tp>::value;
H A Dis_scalar.h18 #include <__type_traits/is_pointer.h>
51 is_pointer<_Tp>::value ||
/llvm-project/clang/test/SemaTemplate/
H A Dtemp_class_spec.cpp3 struct is_pointer { struct
8 struct is_pointer<T*> { argument
13 struct is_pointer<const T*> { argument
17 int array0[is_pointer<int>::value? -1 : 1]; argument
18 int array1[is_pointer<int*>::value? 1 : -1];
19 int array2[is_pointer<const int*>::value? 1 : -1];
/llvm-project/libcxx/test/libcxx/type_traits/
H A Dis_pointer.arc.pass.mm15 // std::is_pointer
25 static_assert(std::is_pointer<T>::value, "");
/llvm-project/mlir/include/mlir/IR/
H A DOwningOpRef.h56 if constexpr (std::is_pointer<OpTy>::value)
/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DJITSymbol.h51 static_assert(std::is_pointer<T>::value, "T must be a pointer type"); in jitTargetAddressToPointer()
62 static_assert(std::is_pointer<T>::value && in jitTargetAddressToFunction()
/llvm-project/clang/lib/AST/Interp/
H A DSource.h
/llvm-project/llvm/include/llvm/Support/
H A DBinaryStreamWriter.h129 static_assert(!std::is_pointer<T>::value, in writeObject()
/llvm-project/libc/src/__support/CPP/
H A DCMakeLists.txt145 type_traits/is_pointer.h

123