C++11进阶知识列表

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ClamReason/article/details/51469541

类型转换to_string()

智能指针

shared_ptr        《C++ Primer》 shared_ptr示例:单词搜索

1 适合放到容器中

unique_ptr

1 替代了原来的auto_ptr

3 可以支持数组

4 可以定制删除操作

weak_ptr 

auto_ptr 

1 不支持数组的创建和释放

2 不能放到容器中,而被新的C++使用unique_ptr替代。

Function

function

function+bind接口编程

std::bind std::ref

异常C++异常的标准用法 

设计模式

23种设计模式:现代C++实现

猜你喜欢

转载自blog.csdn.net/ClamReason/article/details/51469541