List Question
20 TechQA 2024-03-26T12:05:48.780000Memory Management in C++: Differences in allocating shared_ptr using new vs make_shared
52 views
Asked by Ido Fassberg
What is the use of weak_ptr in C++?
21 views
Asked by Ramanan Rajaraman
When are smart pointers' memory cleared on calling execv() in a program?
122 views
Asked by Naveen Kedilaya
Overwrite "object managing shared pointer" with new memory C++
49 views
Asked by Nitron_707
shared_ptr and unique_ptr: question about a specific case
82 views
Asked by Raphael10
shared_ptr thread safety on destruction
91 views
Asked by MichaĆ Walenciak
Why is the reference count not 2?
95 views
Asked by nyori
Unable to specify a class methods as constexpr in C++
69 views
Asked by Aakash Gupta
error: no matching function for call to -- ROS (C++)
63 views
Asked by Diego
My program crashed when using shared_ptr, what's wrong with this code?
125 views
Asked by Morry
Update if not Expired on Weak Pointer in Multi-Threaded Context
84 views
Asked by SpeakX
Shared pointer with predefined maximum use count
156 views
Asked by SpeakX
Why does overload resolution pick the wrong overload when providing a template argument explicitly?
131 views
Asked by MikuSoft
C++ shared pointer on a object call destructor more than one time
113 views
Asked by Vincent31
After destroying object, the code in the function still runs
14 views
Asked by Little
Reading a raw ptr after all owning shared_ptrs are destroyed: is this undefined behavior?
61 views
Asked by nicky eyes
Do I have to manually reset inner shared_ptrs (shared_ptrs as members of a class)
71 views
Asked by chatgptea
Create std::weak_ptr to an indexed value of an array-type std::shared_ptr?
111 views
Asked by lequinne