C++核心准则​GSL.ptr:智能指针相关概念

网友投稿 515 2022-11-12 18:35:09

C++核心准则​GSL.ptr:智能指针相关概念

GSL.ptr: Smart pointer concepts

GSL.ptr:智能指针相关概念

Pointer // A type with *, ->, ==, and default construction (default construction is assumed to set the singular "null" value)指针//具有*,->,==和默认构造的类型(假定使用默认构造来设置单数“ null”值)Unique_pointer // A type that matches Pointer, is movable, and is not copyableUnique_pointer //一种与Pointer匹配,可移动且不可复制的类型Shared_pointer // A type that matches Pointer, and is copyableShared_pointer //一种与Pointer匹配且可复制的类型

面向对象开发,面向对象思考!

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:C++核心准则​GSL.owner:所有权指针
下一篇:自学鸿蒙应用开发(30)- 自定义UI组件(1)
相关文章