What is a smart pointer and when should I use one? -- StackOverflow

There are many reasons to love the now-standard std::unique_ptr and std::shared_ptr. They're well summarized in this classic on StackOverflow.

You don't often see a SO question with 185 upvotes, 117 favorites, and 269 upvotes on the selected answer. Here's one:

What is a smart pointer and when should I use one?

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.