/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/ |
H A D | weak_ptr_Y.pass.cpp | 58 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 D | weak_ptr.pass.cpp | 58 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 D | shared_ptr_Y.pass.cpp | 57 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 D | pr40459.pass.cpp | 49 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 D | shared_ptr_deduction.pass.cpp | 26 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 D | weak_ptr.pass.cpp | 46 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 D | shared_ptr.h | 92 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 D | weak_ptr_Y.pass.cpp | 50 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 D | weak_ptr.pass.cpp | 49 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 D | owner_less.pass.cpp | 62 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 D | types.pass.cpp | 32 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 D | lldb-forward.h | 323 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 D | memory | 590 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 D | main.cpp | 16 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 D | owner_before_shared_ptr.pass.cpp | 24 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 D | owner_before_weak_ptr.pass.cpp | 24 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 D | lock.pass.cpp | 34 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 D | not_less_than.compile.fail.cpp | 22 const std::weak_ptr<int> w1(p1); in main() 23 const std::weak_ptr<int> w2(p2); in main()
|
H A D | expired.pass.cpp | 34 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 D | owner_before_weak_ptr.pass.cpp | 24 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 D | weak_ptr_ret.pass.cpp | 29 __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 D | tuple.smartptr.pass.cpp | 24 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 D | swap.pass.cpp | 37 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 D | swap.pass.cpp | 37 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 D | enable_shared_from_this.pass.cpp | 125 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()
|