smart pointers (boost) explained

What is the difference between the following set of pointers? When do you use each pointer in production code, if at all?

Examples would be appreciated!

  1. scoped_ptr

  2. shared_ptr

  3. weak_ptr

  4. intrusive_ptr

Do you use boost in production code?

4 Answers
4

Leave a Comment