0

What are guidelines for using std::unique_ptr?

For sure one should not use it when pointer is shared among other objects, modules. But meybe there are some other guidelines?

  • for pImpl
  • for member pointer inside class
  • for what else?

hope this question is not a duplicate.

fen
  • 9,835
  • 5
  • 34
  • 57

0 Answers0