3 ms·
You also need week_ptr, that holds a pointer for a week... just kidding... But often you need weak_ptr, for caches - where shared_ptr won't free it, and unique
by malkia 11y ago
You also need week_ptr, that holds a pointer for a week... just kidding...
But often you need weak_ptr, for caches - where shared_ptr won't free it, and unique_ptr won't allow it to be shared.