Ignore:
Timestamp:
2018-07-05T21:41:24Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1668862
Parents:
69cc156
git-author:
Dzejrou <dzejrou@…> (2018-05-18 02:09:49)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: added basic algorithm tests and fixed bugs they found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/algorithm.hpp

    r69cc156 r09416c12  
    8888     */
    8989
    90     // TODO: Function has to be MoveConstructible
    9190    template<class InputIterator, class Function>
    9291    Function for_each(InputIterator first, InputIterator last, Function f)
     
    204203    template<class InputIterator, class Predicate>
    205204    typename iterator_traits<InputIterator>::difference_type
    206     count(InputIterator first, InputIterator last, Predicate pred)
     205    count_if(InputIterator first, InputIterator last, Predicate pred)
    207206    {
    208207        typename iterator_traits<InputIterator>::difference_type cnt{};
Note: See TracChangeset for help on using the changeset viewer.