Comment by edflsafoiewq
7 years ago
The vast majority of the time you just want to pass a reference to the pointed-to object (for both unique_ptr and shared_ptr). Once you've decided what you're actually going to do with the object, that usually determines how you're going to want to pass it.
No comments yet
Contribute on Hacker News ↗