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.