常用的查找算法有哪些
发布时间:2022-09-01 11:13:44
发布人:syq

//查找元素 find(iterator beg, iterator end, value); //条件查找 find_if(iterator beg, iterator end, _callback); //查找相邻重复元素 adjacent_find(iterator beg, iterator end, _callback); //二分查找法 bool binary_search(iterator beg, iterator end, value); //统计元素出现的次数 count(iterator beg, iterator end, value);
下一篇常用的遍历算法有哪些