Search code examples
Erasing container that holds a shared pointer also deletes the object that's being pointed to?...


c++pointerssmart-pointers

Read More
How to change raw pointer to unique_ptr in container of pointers wrapped by boost::variant...


c++boostsmart-pointersboost-variant

Read More
Why does Arc::try_unwrap() cause a panic?...


error-handlingrustsmart-pointersreference-counting

Read More
no crash if I reset the same shared_ptr in multi-threads...


c++multithreadingsmart-pointers

Read More
C++: how does C++ know to destruct smart pointers inside containers?...


c++smart-pointers

Read More
shared_ptr does not destruct the object at the end of the program...


c++c++11queuesmart-pointers

Read More
How do I pass a smart pointer from a function to the caller?...


c++smart-pointers

Read More
using custom deleter with unique_ptr...


c++smart-pointers

Read More
Using smart pointers to keep track of data members that may be deleted...


c++smart-pointersdatamember

Read More
Does dependency injection by smart pointers violate Single Responsibility Principle?...


c++dependency-injectionsmart-pointerssolid-principlessingle-responsibility-principle

Read More
What is the syntax for make_unique for a pointer of base type to a derived object?...


c++smart-pointers

Read More
How to wrap a list of pointers to abstract class?...


c++pointerspolymorphismabstract-classsmart-pointers

Read More
c++ creating cyclically dependent objects with raw pointers...


c++smart-pointerscyclic-dependencyraw-pointer

Read More
Create std::shared_ptr using factory function...


c++factorysmart-pointers

Read More
Partial template specialization of std::atomic for smart pointers...


c++c++11atomicsmart-pointersc++20

Read More
Pop method of linked list using unique_ptr...


c++smart-pointersunique-ptr

Read More
Does memory get freed when reassigning std::unique_ptr?...


c++memorymemory-leakssmart-pointersunique-ptr

Read More
pointer to const int using smart pointer...


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

Read More
Understand smart pointers in Rust...


rustsmart-pointers

Read More
Cannot pass shared_ptr argument to function pointer...


c++c++11templatessmart-pointers

Read More
Compile error with initialization of an std::shared_ptr of type std::unordered_map...


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

Read More
std::shared_ptr in Bison causing member error...


c++bisonsmart-pointersflex-lexer

Read More
Initialize field with raw pointer to object after base class constructed with moved unique_ptr to sa...


c++c++11smart-pointers

Read More
Is there a more concise way to initialize a unique_ptr<char[]> than this?...


c++initializationc++14smart-pointersunique-ptr

Read More
Why am I getting a crash after calling my constructor? I'm trying to push back a shared_ptr to a...


c++c++11shared-ptrsmart-pointersunique-ptr

Read More
How are smart pointers of a derived class implicitly convertible to the base class?...


c++smart-pointers

Read More
How to get the first element in a std::set of pointers, where the pointer points to a specific value...


c++algorithmc++17smart-pointersstdset

Read More
How can I safely overload custom deleter of std::unique_ptr?...


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

Read More
C++ Smart Pointers Scope and Resource Deleting...


c++functionscopec++14smart-pointers

Read More
Nested class constructed in a member function with smart pointers in c++...


c++classsmart-pointers

Read More
BackNext