Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify safety of std::unique_ptr #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frederick-vs-ja
Copy link
Contributor

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 不可复制相关的说明

参考文献

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

std::unique_ptr 概念描述不够清晰
1 participant