Re:C++ patterns for low-latency applications including high-...
by CyberDildonics on Tuesday July 09, 2024 @12:26AM
(#40912529)
Very true, and in between threads and in other areas too, but this isn't scope based ownership, it's completely separate from the scope hierarchy of the program.
Scope based ownership would be a unique_ptr that frees the heap memory when it goes out of scope (if it isn't moved).
Scope based ownership would be a unique_ptr that frees the heap memory when it goes out of scope (if it isn't moved).