Home
last modified time | relevance | path

Searched refs:nullptr_t (Results 1 – 25 of 156) sorted by relevance

1234567

/external/libcxx/include/
D__nullptr24 struct _LIBCPP_TEMPLATE_VIS nullptr_t
30 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR nullptr_t() : __lx(0) {}
31 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR nullptr_t(int __nat::*) : __lx(0) {}
43 …friend _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bool operator==(nullptr_t, nullptr_t) {return t…
44 …friend _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bool operator!=(nullptr_t, nullptr_t) {return f…
47 inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR nullptr_t __get_nullptr_t() {return nullptr_t(0)…
57 typedef decltype(nullptr) nullptr_t;
/external/clang/test/SemaCXX/
Dnullptr.cpp4 typedef decltype(nullptr) nullptr_t; typedef
13 nullptr_t f(nullptr_t null) in f()
61 nullptr_t *pn = &null; in f()
117 static_assert(__is_scalar(nullptr_t), "");
118 static_assert(__is_pod(nullptr_t), "");
119 static_assert(sizeof(nullptr_t) == sizeof(void*), "");
151 operator nullptr_t() const;
165 template<typename T, nullptr_t Value>
Dnullability.cpp8 typedef decltype(nullptr) nullptr_t; typedef
16 typedef nullptr_t _Nonnull nonnull_nullptr_t; // expected-error{{nullability specifier '_Nonnull' c…
32 typedef AddNonNull<nullptr_t>::type nonnull_int_ptr_3; // expected-note{{in instantiation of templa…
/external/libcxxabi/test/
Dcatch_reference_nullptr.pass.cpp30 using nullptr_t = decltype(nullptr); in main() typedef
33 catch_nullptr_test<nullptr_t, true>(); in main()
34 catch_nullptr_test<const nullptr_t, true>(); in main()
35 catch_nullptr_test<volatile nullptr_t, true>(); in main()
36 catch_nullptr_test<const volatile nullptr_t, true>(); in main()
/external/skqp/include/core/
DSkRefCnt.h209 constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} in sk_sp() argument
244 sk_sp<T>& operator=(std::nullptr_t) { this->reset(); return *this; }
330 template <typename T> inline bool operator==(const sk_sp<T>& a, std::nullptr_t) /*noexcept*/ {
333 template <typename T> inline bool operator==(std::nullptr_t, const sk_sp<T>& b) /*noexcept*/ {
340 template <typename T> inline bool operator!=(const sk_sp<T>& a, std::nullptr_t) /*noexcept*/ {
343 template <typename T> inline bool operator!=(std::nullptr_t, const sk_sp<T>& b) /*noexcept*/ {
353 template <typename T> inline bool operator<(const sk_sp<T>& a, std::nullptr_t) {
356 template <typename T> inline bool operator<(std::nullptr_t, const sk_sp<T>& b) {
363 template <typename T> inline bool operator<=(const sk_sp<T>& a, std::nullptr_t) {
366 template <typename T> inline bool operator<=(std::nullptr_t, const sk_sp<T>& b) {
[all …]
/external/skia/include/core/
DSkRefCnt.h209 constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} in sk_sp() argument
244 sk_sp<T>& operator=(std::nullptr_t) { this->reset(); return *this; }
330 template <typename T> inline bool operator==(const sk_sp<T>& a, std::nullptr_t) /*noexcept*/ {
333 template <typename T> inline bool operator==(std::nullptr_t, const sk_sp<T>& b) /*noexcept*/ {
340 template <typename T> inline bool operator!=(const sk_sp<T>& a, std::nullptr_t) /*noexcept*/ {
343 template <typename T> inline bool operator!=(std::nullptr_t, const sk_sp<T>& b) /*noexcept*/ {
353 template <typename T> inline bool operator<(const sk_sp<T>& a, std::nullptr_t) {
356 template <typename T> inline bool operator<(std::nullptr_t, const sk_sp<T>& b) {
363 template <typename T> inline bool operator<=(const sk_sp<T>& a, std::nullptr_t) {
366 template <typename T> inline bool operator<=(std::nullptr_t, const sk_sp<T>& b) {
[all …]
/external/libcxx/test/std/language.support/support.types/
Dnullptr_t.pass.cpp20 A(std::nullptr_t) {} in A()
80 static_assert(sizeof(std::nullptr_t) == sizeof(void*), in main()
84 test_conversions<std::nullptr_t>(); in main()
93 static_assert(!has_less<std::nullptr_t>::value, ""); in main()
101 test_comparisons<std::nullptr_t>(); in main()
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
Dp1-11.cpp4 typedef decltype(nullptr) nullptr_t; typedef
13 constexpr std::nullptr_t get_nullptr() { return nullptr; } in get_nullptr()
15 constexpr std::nullptr_t np = nullptr;
17 std::nullptr_t nonconst_np; // expected-note{{declared here}}
58 template<std::nullptr_t np> struct NP { // expected-note 2{{template parameter is declared here}}
/external/tensorflow/tensorflow/stream_executor/
Ddevice_memory.h68 bool operator==(std::nullptr_t other) const { return is_null(); }
69 bool operator!=(std::nullptr_t other) const { return !is_null(); }
123 DeviceMemory(std::nullptr_t) : DeviceMemory() {} in DeviceMemory() argument
246 bool operator==(std::nullptr_t other) const { return wrapped_.is_null(); }
247 bool operator!=(std::nullptr_t other) const { return !wrapped_.is_null(); }
253 void Reset(std::nullptr_t);
/external/gemmlowp/profiling/
Dpthread_everywhere.h48 inline void pthread_create(pthread_t *thread, std::nullptr_t, in pthread_create() argument
52 inline void pthread_join(pthread_t thread, std::nullptr_t) { thread->join(); } in pthread_join() argument
53 inline void pthread_mutex_init(pthread_mutex_t *mutex, std::nullptr_t) { in pthread_mutex_init() argument
59 inline void pthread_cond_init(pthread_cond_t *cond, std::nullptr_t) { in pthread_cond_init() argument
/external/icu/icu4c/source/common/unicode/
Dchar16ptr.h69 inline Char16Ptr(std::nullptr_t p);
118 Char16Ptr::Char16Ptr(std::nullptr_t p) : p_(p) {} in Char16Ptr()
134 Char16Ptr::Char16Ptr(std::nullptr_t p) { u_.cp = p; } in Char16Ptr()
176 inline ConstChar16Ptr(const std::nullptr_t p);
226 ConstChar16Ptr::ConstChar16Ptr(const std::nullptr_t p) : p_(p) {} in ConstChar16Ptr()
242 ConstChar16Ptr::ConstChar16Ptr(const std::nullptr_t p) { u_.cp = p; } in ConstChar16Ptr()
/external/clang/test/CodeGenCXX/
Dnullptr.cpp12 typedef decltype(nullptr) nullptr_t; typedef
14 nullptr_t get_nullptr();
23 return typeid(nullptr_t); in f2()
/external/clang/test/SemaTemplate/
Ddeduction-crash.cpp125 typedef decltype(nullptr) nullptr_t;
126 template <class P, nullptr_t> struct A;
128 template <template <class, nullptr_t> class S, class T> struct A<S<T, nullptr>, nullptr> {
131 template <class T, nullptr_t i> struct B {};
/external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/propagate_const.relops/
Dnot_equal.pass.cpp23 using std::nullptr_t;
29 constexpr bool operator!=(const X &, const nullptr_t &) { in operator !=() argument
33 constexpr bool operator!=(const nullptr_t &, const X &) { in operator !=() argument
Dequal.pass.cpp23 using std::nullptr_t;
29 constexpr bool operator==(const X &, const nullptr_t &) { in operator ==() argument
33 constexpr bool operator==(const nullptr_t &, const X &) { in operator ==() argument
/external/libchrome/base/android/
Dscoped_java_ref.h53 constexpr JavaRef(std::nullptr_t) : JavaRef() {} in JavaRef() argument
97 JavaRef(std::nullptr_t) : JavaRef<jobject>(nullptr) {} in JavaRef() argument
124 JavaParamRef(std::nullptr_t) : JavaRef<T>(nullptr) {} in JavaParamRef() argument
150 constexpr ScopedJavaLocalRef(std::nullptr_t) : env_(nullptr) {} in ScopedJavaLocalRef() argument
238 constexpr ScopedJavaGlobalRef(std::nullptr_t) {} in ScopedJavaGlobalRef() argument
/external/libcxx/include/support/win32/
Dlocale_win32.h36 locale_t(std::nullptr_t) in locale_t() argument
53 friend bool operator==(const locale_t& __left, std::nullptr_t) {
61 friend bool operator==(std::nullptr_t, const locale_t& __right) {
77 friend bool operator!=(const locale_t& __left, std::nullptr_t __right) {
85 friend bool operator!=(std::nullptr_t __left, const locale_t& __right) {
/external/libchrome/base/memory/
Dweak_ptr.h223 WeakPtr(std::nullptr_t) {} in WeakPtr() argument
270 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
274 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
278 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
282 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
/external/Microsoft-GSL/include/gsl/
Dpointers23 #include <iosfwd> // for ptrdiff_t, nullptr_t, ostream, size_t
63 // - disallow construction from nullptr_t
72 static_assert(std::is_assignable<T&, std::nullptr_t>::value, "T cannot be assigned nullptr.");
80 template <typename = std::enable_if_t<!std::is_same<std::nullptr_t, T>::value>>
106 not_null(std::nullptr_t) = delete;
107 not_null& operator=(std::nullptr_t) = delete;
222 template <typename = std::enable_if_t<!std::is_same<std::nullptr_t, T>::value>>
247 strict_not_null(std::nullptr_t) = delete;
248 strict_not_null& operator=(std::nullptr_t) = delete;
/external/clang/test/Analysis/Inputs/
Dsystem-header-simulator-cxx-std-suppression.h116 typedef decltype(nullptr) nullptr_t; typedef
122 constexpr shared_ptr(nullptr_t);
141 shared_ptr<_Tp>::shared_ptr(nullptr_t) { in shared_ptr() argument
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h229 bool operator==(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
234 bool operator==(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
239 bool operator!=(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
244 bool operator!=(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
/external/libcxx/test/support/
Dmin_allocator.h205 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer() argument
222 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer() argument
246 min_pointer(std::nullptr_t) TEST_NOEXCEPT : ptr_(nullptr) {} in min_pointer() argument
316 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer() argument
381 operator==(min_pointer<T, ID> x, std::nullptr_t)
389 operator==(std::nullptr_t, min_pointer<T, ID> x)
397 operator!=(min_pointer<T, ID> x, std::nullptr_t)
405 operator!=(std::nullptr_t, min_pointer<T, ID> x)
/external/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h247 bool operator==(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
252 bool operator==(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
257 bool operator!=(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
262 bool operator!=(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DIntrusiveRefCntPtr.h245 bool operator==(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
250 bool operator==(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
255 bool operator!=(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
260 bool operator!=(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
/external/clang/test/Lexer/
Dcxx0x_keyword_as_cxx98.cpp8 struct nullptr_t;
9 typedef nullptr_t nullptr; // expected-warning {{'nullptr' is a keyword in C++11}} typedef

1234567