|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
处理相邻元素的算法 更多...
函数 | |
| template<typename Iterator, typename BinaryPredicate, enable_if_t< is_ranges_fwd_iter_v< Iterator >, int > = 0> | |
| constexpr Iterator | adjacent_find (Iterator first, Iterator last, BinaryPredicate binary_pred) |
| 查找第一对满足条件的相邻元素 | |
| template<typename Iterator, enable_if_t< is_ranges_input_iter_v< Iterator >, int > = 0> | |
| constexpr Iterator | adjacent_find (Iterator first, Iterator last) |
| adjacent_find的默认比较版本 | |
处理相邻元素的算法
|
constexpr |
adjacent_find的默认比较版本
| Iterator | 迭代器类型 |
| first | 范围的起始迭代器 |
| last | 范围的终止迭代器 |
在文件 search.hpp 第 288 行定义.
引用了 _MSTL , 以及 adjacent_find().
|
constexpr |
查找第一对满足条件的相邻元素
| Iterator | 迭代器类型,需要满足前向迭代器要求 |
| BinaryPredicate | 二元谓词函数类型 |
| first | 范围的起始迭代器 |
| last | 范围的终止迭代器 |
| binary_pred | 二元谓词函数 |
在文件 search.hpp 第 270 行定义.
引用了 next().
被这些函数引用 adjacent_find(), unique() , 以及 unique().