Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing comments about pointer ownership. Parent comment
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.
There are no comments on this comment yet.
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.