Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
H A Dweak_ptr_Y.pass.cpp58 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); } in source()
62 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
63 static_assert((!std::is_convertible<std::weak_ptr<B>, std::weak_ptr<A> >::value), ""); in main()
64 static_assert((!std::is_convertible<std::weak_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
71 std::weak_ptr<B> pB(pA); in main()
84 std::weak_ptr<A> pA; in main()
89 std::weak_ptr<B> pB(pA); in main()
104 std::weak_ptr<A> pA = source(ps); in main()
105 std::weak_ptr<B> pB(std::move(pA)); in main()
114 std::weak_ptr<A[]> p1 = source(ps); in main()
[all …]
H A Dweak_ptr.pass.cpp57 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); } in source()
61 void sink (std::weak_ptr<T> &&) {} in sink()
68 const std::weak_ptr<A> pA(ps); in main()
73 std::weak_ptr<A> pB(pA); in main()
86 std::weak_ptr<A> pA; in main()
91 std::weak_ptr<A> pB(pA); in main()
107 std::weak_ptr<A> pA = source(ps); in main()
H A Dshared_ptr_Y.pass.cpp57 static_assert(( std::is_convertible<std::shared_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
58 static_assert((!std::is_convertible<std::weak_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
59 static_assert((!std::is_convertible<std::shared_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
66 std::weak_ptr<B> pB(pA); in main()
84 std::weak_ptr<B> pB(pA); in main()
103 std::weak_ptr<const A[]> p2(p1); in main()
H A Dshared_ptr_deduction.pass.cpp26 auto w = std::weak_ptr(s); in main()
27 ASSERT_SAME_TYPE(decltype(w), std::weak_ptr<A>); in main()
/llvm-project-15.0.7/libcxx/include/__memory/
H A Dshared_ptr.h1407 weak_ptr(weak_ptr const& __r) _NOEXCEPT;
1413 weak_ptr(weak_ptr&& __r) _NOEXCEPT;
1431 weak_ptr& operator=(weak_ptr&& __r) _NOEXCEPT;
1477 weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>;
1483 weak_ptr<_Tp>::weak_ptr() _NOEXCEPT
1491 weak_ptr<_Tp>::weak_ptr(weak_ptr const& __r) _NOEXCEPT
1515 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp> const& __r,
1527 weak_ptr<_Tp>::weak_ptr(weak_ptr&& __r) _NOEXCEPT
1538 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp>&& __r,
1549 weak_ptr<_Tp>::~weak_ptr()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/
H A Dweak_ptr_Y.pass.cpp50 const std::weak_ptr<A> pA(ps); in main()
52 std::weak_ptr<B> pB; in main()
68 std::weak_ptr<A> pA(ps); in main()
70 std::weak_ptr<B> pB; in main()
85 const std::weak_ptr<A[]> p1(ps); in main()
87 std::weak_ptr<const A[]> p2; in main()
100 std::weak_ptr<A[]> p1(ps); in main()
102 std::weak_ptr<const A[]> p2; in main()
H A Dweak_ptr.pass.cpp48 const std::weak_ptr<A> pA(ps); in main()
50 std::weak_ptr<A> pB; in main()
66 std::weak_ptr<A> pA(ps); in main()
68 std::weak_ptr<A> pB; in main()
H A Dshared_ptr_Y.pass.cpp50 std::weak_ptr<B> pB; in main()
69 std::weak_ptr<const A[]> p2; in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/
H A Dtypes.pass.cpp32 ASSERT_SAME_TYPE(typename std::weak_ptr<T>::element_type, T); in test()
34 ASSERT_SAME_TYPE(typename std::weak_ptr<T[]>::element_type, T); in test()
35 ASSERT_SAME_TYPE(typename std::weak_ptr<T[8]>::element_type, T); in test()
47 ASSERT_SAME_TYPE(typename std::weak_ptr<int[][2]>::element_type, int[2]); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/
H A Downer_less.pass.cpp62 const std::weak_ptr<int> w1(p1); in main()
63 const std::weak_ptr<int> w2(p2); in main()
64 const std::weak_ptr<int> w3(p3); in main()
90 typedef std::owner_less<std::weak_ptr<int> > CS; in main()
94 static_assert((std::is_same<std::weak_ptr<int>, CS::first_argument_type>::value), "" ); in main()
95 static_assert((std::is_same<std::weak_ptr<int>, CS::second_argument_type>::value), "" ); in main()
117 std::weak_ptr<int> wp1; in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
H A Dweak_ptr.pass.cpp47 std::weak_ptr<A> wp; in main()
61 std::weak_ptr<A> wp(sp0); in main()
70 std::weak_ptr<A const> wp(sp0); in main()
80 std::weak_ptr<A> wp(sp0); in main()
97 std::weak_ptr<A[]> wp(sp0); in main()
/llvm-project-15.0.7/lldb/include/lldb/
H A Dlldb-forward.h317 typedef std::weak_ptr<lldb_private::Debugger> DebuggerWP;
345 typedef std::weak_ptr<lldb_private::Listener> ListenerWP;
350 typedef std::weak_ptr<lldb_private::Module> ModuleWP;
354 typedef std::weak_ptr<lldb_private::ObjectFileJITDelegate>
364 typedef std::weak_ptr<lldb_private::Process> ProcessWP;
369 typedef std::weak_ptr<lldb_private::Queue> QueueWP;
383 typedef std::weak_ptr<lldb_private::Section> SectionWP;
402 typedef std::weak_ptr<lldb_private::StructuredDataPlugin>
412 typedef std::weak_ptr<lldb_private::Target> TargetWP;
414 typedef std::weak_ptr<lldb_private::Thread> ThreadWP;
[all …]
/llvm-project-15.0.7/libcxx/include/
H A Dmemory699 class weak_ptr
708 weak_ptr(weak_ptr const& r) noexcept;
709 template<class Y> weak_ptr(weak_ptr<Y> const& r) noexcept;
710 weak_ptr(weak_ptr&& r) noexcept; // C++14
711 template<class Y> weak_ptr(weak_ptr<Y>&& r) noexcept; // C++14
714 ~weak_ptr();
717 weak_ptr& operator=(weak_ptr const& r) noexcept;
718 template<class Y> weak_ptr& operator=(weak_ptr<Y> const& r) noexcept;
736 weak_ptr(shared_ptr<T>) -> weak_ptr<T>;
739 template<class T> void swap(weak_ptr<T>& a, weak_ptr<T>& b) noexcept;
[all …]
/llvm-project-15.0.7/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/smart_ptr/
H A Dmain.cpp11 std::weak_ptr<char> nwp; in main()
12 std::weak_ptr<int> iwp = isp; in main()
13 std::weak_ptr<std::string> swp = ssp; in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/
H A 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()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/
H A 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()
H A 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()
H A Dlock.pass.cpp34 std::weak_ptr<A> wp; in main()
42 std::weak_ptr<A> wp(sp0); in main()
51 std::weak_ptr<A> wp(sp0); in main()
H A Dnot_less_than.compile.fail.cpp22 const std::weak_ptr<int> w1(p1); in main()
23 const std::weak_ptr<int> w2(p2); in main()
H A Dexpired.pass.cpp34 std::weak_ptr<A> wp; in main()
40 std::weak_ptr<A> wp(sp0); in main()
/llvm-project-15.0.7/libcxx/test/libcxx/memory/trivial_abi/
H A Dweak_ptr_ret.pass.cpp27 __attribute__((noinline)) std::weak_ptr<Node>
31 std::weak_ptr<Node> ret; in make_val()
43 std::weak_ptr<Node> ret = make_val(sptr, &local_addr); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.general/
H A Dtuple.smartptr.pass.cpp24 std::tuple<std::weak_ptr <char>> wp; in main()
29 std::tuple<std::weak_ptr <char[]>> wp; in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.spec/
H A Dswap.pass.cpp38 std::weak_ptr<A> w1(p1); in main()
41 std::weak_ptr<A> w2(p2); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.mod/
H A Dswap.pass.cpp37 std::weak_ptr<A> w1(p1); in main()
40 std::weak_ptr<A> w2(p2); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/
H A Denable_shared_from_this.pass.cpp125 std::weak_ptr<T> weak; in main()
158 std::weak_ptr<T> my_weak = ptr->weak_from_this(); in main()
161 std::weak_ptr<T const> my_const_weak = cptr->weak_from_this(); in main()

123