欣乐

The eagles are coming!

导航

2014年11月25日 #

C++STL算法速查

摘要: 非变易算法/*第21章 非变易算法 Non-modifying sequence operations 21.0 advance, distance 为了了解模板,先了解一下这两个迭代器操作函数 21.1 逐个容器元素for_each for_each Apply... 阅读全文

posted @ 2014-11-25 12:39 欣乐 阅读(193) 评论(0) 推荐(0) 编辑

第24章 数值算法

摘要: 第24章 数值算法 24.1 递增赋值iota 24.2 元素求和accumulate 24.3 两序列元素内积inner_product 24.4 部分元素求和partial_sum 24.5 相邻元素求差adjacent_difference 24.6 n次方计算power 24.7 本章小结有... 阅读全文

posted @ 2014-11-25 12:25 欣乐 阅读(225) 评论(0) 推荐(0) 编辑

第23章 排序算法(包括merge等)

摘要: 第23章 排序算法Sorting:1sortSort elements in range (function template)2stable_sortSort elements preserving order of equivalents (function template)3partial... 阅读全文

posted @ 2014-11-25 10:35 欣乐 阅读(220) 评论(0) 推荐(0) 编辑