Home
last modified time | relevance | path

Searched refs:weak_ptr (Results 1 – 25 of 44) sorted by relevance

12

/external/protobuf/src/google/protobuf/stubs/
Dshared_ptr.h63 using std::weak_ptr;
77 template <typename T> class weak_ptr;
95 template <typename T> friend class weak_ptr;
107 template <typename U> friend class weak_ptr;
293 class weak_ptr {
294 template <typename U> friend class weak_ptr;
299 weak_ptr() : ptr_(NULL), control_block_(NULL) { }
305 template <typename U> weak_ptr(const shared_ptr<U>& ptr) {
313 template <typename U> weak_ptr(const weak_ptr<U>& ptr) {
318 weak_ptr(const weak_ptr& ptr) {
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
Dweak_ptr_Y.pass.cpp56 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); } in source()
60 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
61 static_assert((!std::is_convertible<std::weak_ptr<B>, std::weak_ptr<A> >::value), ""); in main()
62 static_assert((!std::is_convertible<std::weak_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
64 const std::weak_ptr<A> pA(std::shared_ptr<A>(new A)); in main()
69 std::weak_ptr<B> pB(pA); in main()
82 std::weak_ptr<A> pA; in main()
87 std::weak_ptr<B> pB(pA); in main()
102 std::weak_ptr<A> pA = source(ps); in main()
103 std::weak_ptr<B> pB(std::move(pA)); in main()
Dweak_ptr.pass.cpp58 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); } in source()
62 void sink (std::weak_ptr<T> &&) {} in sink()
69 const std::weak_ptr<A> pA(ps); in main()
74 std::weak_ptr<A> pB(pA); in main()
87 std::weak_ptr<A> pA; in main()
92 std::weak_ptr<A> pB(pA); in main()
108 std::weak_ptr<A> pA = source(ps); in main()
Dshared_ptr_Y.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
57 static_assert((!std::is_convertible<std::weak_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
65 std::weak_ptr<B> pB(pA); in main()
83 std::weak_ptr<B> pB(pA); in main()
Ddefault.pass.cpp23 std::weak_ptr<A> p; in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/
Downer_less.pass.cpp61 const std::weak_ptr<int> w1(p1); in main()
62 const std::weak_ptr<int> w2(p2); in main()
63 const std::weak_ptr<int> w3(p3); in main()
84 typedef std::owner_less<std::weak_ptr<int> > CS; in main()
87 static_assert((std::is_same<std::weak_ptr<int>, CS::first_argument_type>::value), "" ); in main()
88 static_assert((std::is_same<std::weak_ptr<int>, CS::second_argument_type>::value), "" ); in main()
106 std::weak_ptr<int> wp1; in main()
/external/libchrome/base/memory/
Dweak_ptr.h262 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
263 return !(weak_ptr == nullptr);
266 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
267 return weak_ptr != nullptr;
270 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
271 return weak_ptr.get() == nullptr;
274 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
275 return weak_ptr == nullptr;
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/
Dweak_ptr.pass.cpp47 const std::weak_ptr<A> pA(ps); in main()
49 std::weak_ptr<A> pB; in main()
65 std::weak_ptr<A> pA(ps); in main()
67 std::weak_ptr<A> pB; in main()
Dweak_ptr_Y.pass.cpp47 const std::weak_ptr<A> pA(ps); in main()
49 std::weak_ptr<B> pB; in main()
65 std::weak_ptr<A> pA(ps); in main()
67 std::weak_ptr<B> pB; in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/
Downer_before_weak_ptr.pass.cpp24 const std::weak_ptr<int> w1(p1); in main()
25 const std::weak_ptr<int> w2(p2); in main()
26 const std::weak_ptr<int> w3(p3); in main()
Downer_before_shared_ptr.pass.cpp24 const std::weak_ptr<int> w1(p1); in main()
25 const std::weak_ptr<int> w2(p2); in main()
26 const std::weak_ptr<int> w3(p3); in main()
Dlock.pass.cpp33 std::weak_ptr<A> wp; in main()
41 std::weak_ptr<A> wp(sp0); in main()
50 std::weak_ptr<A> wp(sp0); in main()
Dnot_less_than.fail.cpp23 const std::weak_ptr<int> w1(p1); in main()
24 const std::weak_ptr<int> w2(p2); in main()
Dexpired.pass.cpp33 std::weak_ptr<A> wp; in main()
39 std::weak_ptr<A> wp(sp0); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/
Downer_before_weak_ptr.pass.cpp24 const std::weak_ptr<int> w1(p1); in main()
25 const std::weak_ptr<int> w2(p2); in main()
26 const std::weak_ptr<int> w3(p3); in main()
/external/libchrome/base/timer/
Dmock_timer_unittest.cc71 base::WeakPtr<HasWeakPtr> weak_ptr(has_weak_ptr->AsWeakPtr()); in TEST() local
74 ASSERT_TRUE(weak_ptr.get()); in TEST()
78 ASSERT_TRUE(weak_ptr.get()); in TEST()
80 ASSERT_FALSE(weak_ptr.get()); in TEST()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
Dweak_ptr.pass.cpp48 std::weak_ptr<A> wp; in main()
62 std::weak_ptr<A> wp(sp0); in main()
72 std::weak_ptr<A> wp(sp0); in main()
/external/libcxx/include/
Dmemory392 typedef weak_ptr<T> weak_type; // C++17
406 template<class Y> explicit shared_ptr(const weak_ptr<Y>& r);
437 template<class U> bool owner_before(weak_ptr<U> const& b) const;
503 class weak_ptr
509 constexpr weak_ptr() noexcept;
510 template<class Y> weak_ptr(shared_ptr<Y> const& r) noexcept;
511 weak_ptr(weak_ptr const& r) noexcept;
512 template<class Y> weak_ptr(weak_ptr<Y> const& r) noexcept;
513 weak_ptr(weak_ptr&& r) noexcept; // C++14
514 template<class Y> weak_ptr(weak_ptr<Y>&& r) noexcept; // C++14
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.general/
Dtuple.smartptr.pass.cpp23 std::tuple<std::weak_ptr <char>> wp; in main()
28 std::tuple<std::weak_ptr <char[]>> wp; in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.spec/
Dswap.pass.cpp36 std::weak_ptr<A> w1(p1); in main()
39 std::weak_ptr<A> w2(p2); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.mod/
Dswap.pass.cpp36 std::weak_ptr<A> w1(p1); in main()
39 std::weak_ptr<A> w2(p2); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/
Denable_shared_from_this.pass.cpp116 std::weak_ptr<T> weak; in main()
149 std::weak_ptr<T> my_weak = ptr->weak_from_this(); in main()
152 std::weak_ptr<T const> my_const_weak = cptr->weak_from_this(); in main()
/external/libbrillo/brillo/dbus/
Dexported_object_manager.h124 std::weak_ptr<SignalInterfacesAdded> signal_itf_added_;
125 std::weak_ptr<SignalInterfacesRemoved> signal_itf_removed_;
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp4.cpp210 template<typename T> struct weak_ptr { struct
211 constexpr weak_ptr() : p(0) {} in weak_ptr() function
215 weak_ptr<T> weak_this; argument
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dweak_ptr.hpp22 using std::weak_ptr;

12