Search code examples
What is a smart pointer and when should I use one?...


c++pointersc++11smart-pointersc++-faq

Read More
Should I use unique_ptr to keep class members?...


c++pointerssmart-pointersunique-ptr

Read More
Smart pointer in global scope...


c++smart-pointers

Read More
Why can’t I efficiently move-construct `std::polymorphic<Base>` from `std::polymorphic<Deri...


c++polymorphismsmart-pointersc++26

Read More
Why is there no "weak pointer" for raw pointer? Or is there?...


c++c++11smart-pointers

Read More
Linkedlist create like below with shared_ptr is proper or wrong -...


c++linked-listshared-ptrsmart-pointers

Read More
Shared_ptr custom deleter...


c++c++11sdlsmart-pointers

Read More
how to defer delete operation of shared_ptr?...


c++pointersshared-ptrsmart-pointers

Read More
How to pass deleter to make_shared?...


c++c++11shared-ptrsmart-pointersmake-shared

Read More
How to handle return of unique_ptr in trompeloeil RETURN expectations...


c++mockingsmart-pointersunique-ptrtrompeloeil

Read More
How do I pass smart pointers into functions?...


c++c++11parameter-passingsmart-pointersunique-ptr

Read More
Is there any use for unique_ptr with array?...


c++c++11smart-pointersunique-ptr

Read More
When to use shared_ptr and when to use raw pointers?...


c++smart-pointers

Read More
std::vector: when is a pointer not a pointer?...


c++vectorsmart-pointers

Read More
How to assign the address of an existing object to a smart pointer?...


c++smart-pointersc++14unique-ptr

Read More
invalid user-defined conversion from Pointer<Node> to Node*...


c++pointersc++11smart-pointers

Read More
What is the difference between std::shared_ptr and std::atomic<std::shared_ptr> aka. std::expe...


c++c++11concurrencyatomicsmart-pointers

Read More
Can an object that owns a unique pointer be unique pointed to?...


c++polymorphismsmart-pointers

Read More
How to prevent code heavily relying on polymorphism from being littered with `make_shared` all over ...


c++polymorphismsmart-pointers

Read More
Tracking down owner of a shared_ptr?...


c++c++11c++14shared-ptrsmart-pointers

Read More
How does Qt manages memory with smart pointers ? My app should be crashing...


c++qtsmart-pointersraii

Read More
Reference counted singleton...


c++multithreadingsingletonatomicsmart-pointers

Read More
Propagate constness to data pointed by member variables...


c++pointersconstantssmart-pointers

Read More
Understanding C++ std::shared_ptr...


c++shared-ptrsmart-pointersreference-counting

Read More
Are smart pointers that are members of a class still automatically freed?...


c++pointersshared-ptrsmart-pointers

Read More
How to create a cyclic reference with Arc and Weak?...


referencerustsmart-pointers

Read More
Recommended way to make std::unique_ptr of array type without value initialization?...


c++memory-managementsmart-pointersunique-ptr

Read More
Atomic operations on `unique_ptr`...


c++multithreadingthread-safetyatomicsmart-pointers

Read More
C++: would universal use of shared_ptr<> be equivalent to a gc?...


javac++garbage-collectionsmart-pointers

Read More
std::move captured unique_ptr inside lambda...


c++lambdasmart-pointers

Read More
BackNext