Home
last modified time | relevance | path

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

123

/llvm-project/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()
66 const std::weak_ptr<A> pA(std::shared_ptr<A>(new A)); 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()
[all …]
H A 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()
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 Dpr40459.pass.cpp49 std::weak_ptr<B> wp = sp; in main()
56 std::weak_ptr<A> wq = wp; in main()
58 std::weak_ptr<A> wr = std::move(wp); 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/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
H A Dweak_ptr.pass.cpp46 static_assert(!std::is_constructible<std::shared_ptr<int>, const std::weak_ptr<long>&>::value, …
47 static_assert( std::is_constructible<std::shared_ptr<B>, const std::weak_ptr<A>&>::value, "");
48 static_assert( std::is_constructible<std::shared_ptr<const A>, const std::weak_ptr<A>&>::value, "");
49 static_assert(!std::is_constructible<std::shared_ptr<A>, const std::weak_ptr<const A>&>::valu…
52 static_assert(!std::is_constructible<std::shared_ptr<int>, const std::weak_ptr<int[]>&>::value,…
53 static_assert(!std::is_constructible<std::shared_ptr<int>, const std::weak_ptr<int[5]>&>::value…
54 static_assert(!std::is_constructible<std::shared_ptr<int[]>, const std::weak_ptr<int>&>::value, "…
55 static_assert( std::is_constructible<std::shared_ptr<int[]>, const std::weak_ptr<int[5]>&>::value…
56 static_assert(!std::is_constructible<std::shared_ptr<int[5]>, const std::weak_ptr<int>&>::value, "…
57 static_assert(!std::is_constructible<std::shared_ptr<int[5]>, const std::weak_ptr<int[]>&>::value,…
[all …]
/llvm-project/libcxx/include/__memory/
H A Dshared_ptr.h92 class _LIBCPP_TEMPLATE_VIS weak_ptr; in __libcpp_acquire_load()
311 typedef weak_ptr<_Tp> weak_type; in _ALIGNAS_TYPE()
496 _LIBCPP_HIDE_FROM_ABI explicit shared_ptr(const weak_ptr<_Yp>& __r)
651 _LIBCPP_HIDE_FROM_ABI bool owner_before(weak_ptr<_Up> const& __p) const _NOEXCEPT {
715 friend class _LIBCPP_TEMPLATE_VIS weak_ptr;
720 shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>;
1204 class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS weak_ptr {
1212 // A weak_ptr contains only two raw pointers which point to the heap and move constructing already doesn't require
1214 using __trivially_relocatable _LIBCPP_NODEBUG = weak_ptr;
1221 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR weak_ptr() _NOEXCEP
133 class _LIBCPP_TEMPLATE_VIS weak_ptr; global() variable
[all...]
/llvm-project/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.cpp49 const std::weak_ptr<A> pA(ps); in main()
51 std::weak_ptr<A> pB; in main()
67 std::weak_ptr<A> pA(ps); in main()
69 std::weak_ptr<A> pB; in main()
/llvm-project/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/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/lldb/include/lldb/
H A Dlldb-forward.h323 typedef std::weak_ptr<lldb_private::Breakpoint> BreakpointWP;
326 typedef std::weak_ptr<lldb_private::BreakpointLocation> BreakpointLocationWP;
332 typedef std::weak_ptr<lldb_private::BroadcasterManager> BroadcasterManagerWP;
341 typedef std::weak_ptr<lldb_private::Debugger> DebuggerWP;
370 typedef std::weak_ptr<lldb_private::Listener> ListenerWP;
375 typedef std::weak_ptr<lldb_private::Module> ModuleWP;
380 typedef std::weak_ptr<lldb_private::ObjectFileJITDelegate>
386 typedef std::weak_ptr<lldb_private::OptionValue> OptionValueWP;
393 typedef std::weak_ptr<lldb_private::Process> ProcessWP;
400 typedef std::weak_ptr<lldb_privat
[all...]
/llvm-project/libcxx/include/
H A Dmemory590 typedef weak_ptr<T> weak_type; // C++17
604 template<class Y> explicit shared_ptr(const weak_ptr<Y>& r);
635 template<class U> bool owner_before(weak_ptr<U> const& b) const noexcept;
639 shared_ptr(weak_ptr<T>) -> shared_ptr<T>;
740 class weak_ptr
747 constexpr weak_ptr() noexcept;
748 template<class Y> weak_ptr(shared_ptr<Y> const& r) noexcept;
749 weak_ptr(weak_ptr const& r) noexcept;
750 template<class Y> weak_ptr(weak_pt
[all...]
/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/smart_ptr/
H A Dmain.cpp16 std::weak_ptr<char> nwp; in main()
17 std::weak_ptr<int> iwp = isp; in main()
18 std::weak_ptr<std::string> swp = ssp; in main()
/llvm-project/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/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/libcxx/test/libcxx/memory/trivial_abi/
H A Dweak_ptr_ret.pass.cpp29 __attribute__((noinline)) std::weak_ptr<Node>
33 std::weak_ptr<Node> ret; in make_val()
45 std::weak_ptr<Node> ret = make_val(sptr, &local_addr); in main()
/llvm-project/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/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.spec/
H A Dswap.pass.cpp37 std::weak_ptr<A> w1(p1); in main()
40 std::weak_ptr<A> w2(p2); in main()
/llvm-project/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/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