摘要:
#include | #include | #include 1. 判断式 - for 搜索算法: 传递一个函数或函数对象, 指定一个一元判断式可以作为搜索准则 - for 排序算法: 传递一个函数或函数对象, 指定一个二元判断式可以作为排序准则 - for 过滤: 传递一个一元判断... 阅读全文
posted @ 2015-10-18 20:13
roger9567
阅读(204)
评论(0)
推荐(0)
摘要:
string | array | hash1. string - 可以视为以字符为元素的一种容器, 可以在字符上进行遍历, 提供begin()/end() - 为了支持迭代器和迭代器适配器 , string提供了一些操作函数, 如 push_back().2. array - 可以将数组也当作... 阅读全文
posted @ 2015-10-18 20:13
roger9567
阅读(157)
评论(0)
推荐(0)
摘要:
1. 所在头文件. 命名空间std, 声明如下: 1 namespace std{ 2 template , 4 class Allocator = allocator > > 5 class map; 6 template , 8 ... 阅读全文
posted @ 2015-10-18 19:06
roger9567
阅读(179)
评论(0)
推荐(0)
摘要:
1. 所在头文件: , 命名空间: std ; 声明如下: 1 namespace std{ 2 template , 4 class Allocator = allocator > 5 class set; 6 template , 8 ... 阅读全文
posted @ 2015-10-18 17:13
roger9567
阅读(176)
评论(0)
推荐(0)
摘要:
0. 内容为个人学习笔记, 仅供参考, 如有错漏, 欢迎指正!1. STL中的所有组件都是由模板构成的, 所以其元素可以是任意型别的. 组件有: - 容器: 管理某类对象的集合. 不同的容器有各自的优缺点. - 迭代器: 用来在一个对象集群(Collection of Objects) 的元素上... 阅读全文
posted @ 2015-10-18 02:03
roger9567
阅读(212)
评论(0)
推荐(0)

浙公网安备 33010602011771号