How can a class be made (partial) owner of a pointer given a function that returns a unique_ptr

后端 未结 0 489
小蘑菇
小蘑菇 2020-12-03 02:52

This question is a follow-up to Why doesn't returning a std::unique_ptr violate unique_ptr's deleted copy constructor? (which is answered here: Returning unique_ptr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题