cb24a_c++_STL_算法简介

/*cb24a_c++_STL_算法简介

参考:

https://www.cnblogs.com/txwtech/p/12326830.html
100多钟算法
函数对象(function objects)
函数适配器(function adapters)
三个头文件
#include <algorithm>
#include <numeric>
#include <functional>

预定义的函数对象
negate<type>()
plus<type>()
minus<type>()
multilies<type>()
divides<type>()
modulus<type>()

equal_to<type>()
not_equal_to<type>()
less<type>()
greater<type>()
less_equal<type>()
greater_equal<type>()
logical_not<type>()
logical_and<type>()
logical_or<type>()

预定义的函数适配器
bind1st(op,value)
bind2nd(op,value)
not1(op)
not2(op)
mem_fun_ref(op)
mem_fun(op)
ptr_fun(op)

算法分类:
非修改性算法(nonmodifying algorithms)
修改性算法(modifying algorithms)
移除性算法(removing algorithms)
变序性算法(mutating algorithms)
排序算法(sorting algorithms)
已序区间算法(sorted range algorithms)
数值算法(numeric algorithms)

*/

发布了429 篇原创文章 · 获赞 196 · 访问量 92万+

猜你喜欢

转载自blog.csdn.net/txwtech/article/details/104382505