modern-cpp-tutorial icon indicating copy to clipboard operation
modern-cpp-tutorial copied to clipboard

Clarify safety of `std::unique_ptr`

Open frederick-vs-ja opened this issue 1 year ago • 0 comments

resolve #282

Description

Clarify under which conditions unique_ptr guarantees safety, because it can't introduce absolute safety.

Change List

  • Add description regarding the non-copyability of unique_ptr

Reference


说明

澄清 unique_ptr 在何种情况下保证安全,因为它不可能带来绝对的安全。

变化箱单

  • 增加了 unique_ptr 不可复制相关的说明

参考文献

frederick-vs-ja avatar Aug 25 '24 17:08 frederick-vs-ja