Search code examples
How to check if a shared_ptr type is of <type> statically?...


c++templatesshared-ptrsmart-pointersc++-concepts

Read More
How can I fix this memory leak when using Qt smart pointers and deleteLater()?...


c++multithreadingqtmemory-leakssmart-pointers

Read More
unique_ptr usage with tree-like data structures...


c++smart-pointers

Read More
In Rust, how does Weak<T> know when the inner value has been dropped?...


rustmemory-managementsmart-pointersweak-referencesreference-counting

Read More
std::unique_ptr with custom deleter: regular vs array type...


c++memorysmart-pointersunique-ptr

Read More
Will std::move() call the destructor of the owned object of a unique_ptr?...


c++smart-pointersunique-ptrstdmove

Read More
How to pre-order a binary tree in a function without moving its root node?...


functionrustreferencesmart-pointersborrow-checker

Read More
How to write constructors for implicit conversions from instances of a templated class C<Derived&...


c++smart-pointersimplicit-conversion

Read More
Understanding unique_ptr get() function...


c++smart-pointersunique-ptr

Read More
How to idiomatically store a unique_ptr or shared_ptr at runtime?...


c++shared-ptrsmart-pointersunique-ptr

Read More
Understanding C++ typecasts with smart pointers...


c++castingc++20smart-pointers

Read More
Actual use cases for the Drop trait in Rust?...


pointersrustsmart-pointers

Read More
Detecting if a object is owned by a smart pointer...


c++boostc++11shared-ptrsmart-pointers

Read More
If a raw pointer goes out of scope, does the smart pointer hold the allocated memory?...


c++c++17smart-pointers

Read More
How to deal uniformly with a factory returning unique_ptr and a getter returning a reference to glob...


c++memory-managementc++17smart-pointersunique-ptr

Read More
How to check memory allocation failures with new operator?...


c++memory-managementsmart-pointers

Read More
C++ own shared ptr class...


c++c++20shared-ptrsmart-pointers

Read More
How do `shared_ptr` and `weak_ptr` avoid a leak in this case?...


c++shared-ptrsmart-pointersrace-condition

Read More
Changing contents of an array via its reference...


rustsmart-pointersrefcell

Read More
Taking ownership from a smart pointer with further access to the raw pointer via the same smart poin...


c++c++11smart-pointers

Read More
Smart Pointers and Exception...


c++c++11smart-pointers

Read More
How to make deep a copy of shared_ptr?...


c++booststlsmart-pointers

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


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

Read More
Why shared_ptr didn't make raw pointer NULL?...


c++shared-ptrsmart-pointers

Read More
Undefined reference error when initializing unique_ptr with a static const...


c++c++14smart-pointers

Read More
Creating Multiple Mutexes in Rust for Thread Synchronization...


rustconcurrencymutexsmart-pointers

Read More
How to return google protocol messages from factory as unique_ptr?...


c++protocol-buffersabstract-classsmart-pointers

Read More
Why does std::unique_ptr not have a const get method?...


c++c++11constantssmart-pointers

Read More
The smart pointer from cracking the code interview...


c++c++11c++17c++14smart-pointers

Read More
Should I use an std::vector or a std::unique_ptr here?...


c++arraysvectorsmart-pointers

Read More
BackNext