105 STL Algorithms in Less Than an Hour

- 3 分钟前

配套食用:The C++ Conference bellevue 2018


这是 2018 年 CPPCon 会议的演讲,从 STL 的优点开始讲起,从 for_each 说起,展示了了一张 STL algorithms 地图【基于权力的游戏地图】,包含了 C++ 17 以来的所有 STL 算法。今日目标:眼熟 STL algorithms 库有哪些算法就算成功!

cpp-stl-algorithm-maps

Land of Permutation

HEAPS

SORTING

PARTITIONING

其他置换操作

Secret Runes

Lands of Queries

Numeric Algorithms

Querying a Property

checks if a predicate is true for all, any or none of the elements in a range;

Searching a Value

Not Sorted:

Sorted:

Searching a Range

Searching a Relative Value

Glorious County of Algos on Sets

Sets algorithms

Territory of Mover

Land of Value Modifiers

Value Modifiers

Island of Structure Changers

Lonely Land

transform

for_each

Peninsula of Raw Memory

fill, copy, move 三个操作在原始内存上进行操作;

begin and size n

除了标准模版库中的算法库,还有其他的一些算法库,比如 Boost.Algorithms.


references:

Inger Chao(赵琦)

Inger Chao(赵琦)

CS 研二在读

Inger Notes © 2021
rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora qq quora wechat