Search code examples
How does a weak_ptr prevent cyclic references?...


c++c++11shared-ptrweak-ptrcyclic-reference

Read More
boost, shared ptr Vs weak ptr? Which to use when?...


c++memory-managementboostshared-ptrweak-ptr

Read More
Is std::atomic<std::weak_ptr<>>::compare_exchange_* guaranteed to work if the underlying...


c++multithreadingatomiccompare-and-swapweak-ptr

Read More
How can I use std::enable_shared_from_this in both super and subclass?...


c++shared-ptrmultiple-inheritanceweak-ptrenable-shared-from-this

Read More
What's the performance penalty of weak_ptr?...


c++performanceboostweak-ptr

Read More
How to use 'this' pointer with smart pointers...


c++thissmart-pointersweak-ptr

Read More
Update if not Expired on Weak Pointer in Multi-Threaded Context...


c++multithreadingthread-safetyshared-ptrweak-ptr

Read More
std::enable_shared_from_this: is it allowed to call shared_from_this() in destructor?...


c++c++11destructorshared-ptrweak-ptr

Read More
How can you efficiently check whether two std::weak_ptr pointers are pointing to the same object?...


c++c++11shared-ptrsmart-pointersweak-ptr

Read More
Create std::weak_ptr to an indexed value of an array-type std::shared_ptr?...


c++stlstdshared-ptrweak-ptr

Read More
Casting shared_ptr<Type> to weak_ptr<void> and back...


c++shared-ptrweak-ptr

Read More
When is std::weak_ptr useful?...


c++c++11shared-ptrweak-ptrc++-faq

Read More
Mutual dependency of two objects...


c++dependenciesaggregationweak-referencesweak-ptr

Read More
Is it valid to static_cast 'weak_ptr<SomeThing>*' to 'void*' then back to &#39...


c++luashared-ptrweak-ptr

Read More
Why can't a weak_ptr be constructed from a unique_ptr?...


c++shared-ptrsmart-pointersunique-ptrweak-ptr

Read More
Weak pointer library implementation C++...


c++shared-ptrlibweak-ptrrefcounting

Read More
'std::bad_weak_ptr' error while using shared_from_this...


c++c++11shared-ptrweak-ptrenable-shared-from-this

Read More
How to make a c++11 std::unordered_set of std::weak_ptr...


c++c++11stdunordered-setweak-ptr

Read More
How does std::weak_ptr store its "use_count" information?...


c++countreferenceshared-ptrweak-ptr

Read More
How to compute hash of std::weak_ptr?...


c++hashweak-ptr

Read More
How to prove c++11 make_shared() can keep shared_ptr's control block alive even after its dtor?...


c++referenceshared-ptrweak-ptrmake-shared

Read More
How to not allow conversion from temporary shared_ptr to weak_ptr for derived types...


c++inheritancec++20weak-ptr

Read More
How to ensure a weak_ptr is not created from a temporary shared_ptr?...


c++c++20type-traitsc++-conceptsweak-ptr

Read More
What is the cyclic dependency issue with shared_ptr?...


c++shared-ptrweak-ptr

Read More
Capture shared_ptr in lambda...


c++lambdashared-ptrweak-ptr

Read More
weak_ptr to singleton not thread-safe...


c++multithreadingsingletonweak-ptr

Read More
Can I reset shared_ptr without deleting object so that weak_ptr loses a reference to it...


c++shared-ptrweak-ptr

Read More
Calling `.lock()` on weak_ptr returns NULL shared_ptr...


c++c++14weak-ptr

Read More
operator -> or ->* applied to "const std::weak_ptr" instead of to a pointer typeC/C+...


c++weak-ptr

Read More
Why does std::weak_ptr<T>::lock return empty shared pointer here?...


c++smart-pointersweak-ptr

Read More
BackNext