2021年3月8日

c++ algorithm之count_if

摘要: 函数原型: template <class InputIterator, class UnaryPredicate> typename iterator_traits<InputIterator>::difference_type count_if (InputIterator first, Inp 阅读全文

posted @ 2021-03-08 07:42 Embed-Li 阅读(201) 评论(0) 推荐(0)

2021年3月4日

C++ algorithm之count

摘要: 函数原型: template <class InputIterator, class T> typename iterator_traits<InputIterator>::difference_type count (InputIterator first, InputIterator last, 阅读全文

posted @ 2021-03-04 22:29 Embed-Li 阅读(163) 评论(0) 推荐(0)

2021年3月1日

C++ algorith之copy_if

摘要: 函数原型: template <class InputIterator, class OutputIterator, class UnaryPredicate> OutputIterator copy_if (InputIterator first, InputIterator last, Outp 阅读全文

posted @ 2021-03-01 23:30 Embed-Li 阅读(196) 评论(0) 推荐(0)

C++ algorithm之copy_backward

摘要: 函数原型: template <class BidirectionalIterator1, class BidirectionalIterator2> BidirectionalIterator2 copy_backward (BidirectionalIterator1 first, Bidire 阅读全文

posted @ 2021-03-01 22:47 Embed-Li 阅读(220) 评论(0) 推荐(0)

2021年2月27日

C++ algorithm之copy

摘要: 函数原型: template <class InputIterator, class OutputIterator> OutputIterator copy (InputIterator first, InputIterator last, OutputIterator result); 作用: 拷 阅读全文

posted @ 2021-02-27 23:06 Embed-Li 阅读(149) 评论(0) 推荐(0)

2021年2月25日

C++ algorithm之binary_search

摘要: 函数原型: 默认形式:template <class ForwardIterator, class T> bool binary_search (ForwardIterator first, ForwardIterator last, const T& val);自定义形式: template <c 阅读全文

posted @ 2021-02-25 08:02 Embed-Li 阅读(191) 评论(0) 推荐(0)

2021年2月23日

C++ algorithm之any_of

摘要: 函数原型: template <class InputIterator, class UnaryPredicate> bool any_of (InputIterator first, InputIterator last, UnaryPredicate pred); 在范围[first, last 阅读全文

posted @ 2021-02-23 21:30 Embed-Li 阅读(138) 评论(0) 推荐(0)

c++ algorithm之all_of

摘要: 函数原型: template <class InputIterator, class UnaryPredicate> bool all_of (InputIterator first, InputIterator last, UnaryPredicate pred);作用:对[first,last) 阅读全文

posted @ 2021-02-23 20:28 Embed-Li 阅读(126) 评论(0) 推荐(0)

导航