Searched defs:weak_ptr (Results 1 - 4 of 4) sorted by relevance

/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp4.cpp210 template<typename T> struct weak_ptr { struct
211 constexpr weak_ptr() : p(0) {} function in struct:weak_ptr
215 weak_ptr<T> weak_this;
/external/libchrome/base/
H A Dbind_internal.h16 #include "base/memory/weak_ptr.h"
298 BoundWeakPtr&& weak_ptr,
300 if (!weak_ptr)
304 std::forward<BoundWeakPtr>(weak_ptr),
297 MakeItSo(Functor&& functor, BoundWeakPtr&& weak_ptr, RunArgs&&... args) argument
/external/libchrome/base/memory/
H A Dweak_ptr.h241 // Allow conditionals to test validity, e.g. if (weak_ptr) {...};
262 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) { argument
263 return !(weak_ptr == nullptr);
266 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) { argument
267 return weak_ptr != nullptr;
270 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) { argument
271 return weak_ptr.get() == nullptr;
274 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) { argument
275 return weak_ptr == nullptr;
H A Dweak_ptr_unittest.cc5 #include "base/memory/weak_ptr.h"
370 WeakPtr<Target> weak_ptr = target->AsWeakPtr(); local
371 EXPECT_EQ(target.get(), weak_ptr.get());
393 WeakPtr<Target> weak_ptr = target->AsWeakPtr(); local

Completed in 474 milliseconds