阅读背景:

为什么unique_ptr将删除器作为类型参数而shared_ptr没有?

来源:互联网 

The std::unique_ptr template has two parameters: the type of the pointee, and the type of the deleter. This second parameter has a default value, so you usually just write something like template has two parameters




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: