Changeset 09416c12 in mainline
- Timestamp:
- 2018-07-05T21:41:24Z (7 years ago)
- 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)
- Location:
- uspace/lib/cpp
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/Makefile
r69cc156 r09416c12 56 56 src/__bits/trycatch.cpp \ 57 57 src/__bits/unwind.cpp \ 58 src/__bits/test/algorithm.cpp \ 58 59 src/__bits/test/adaptors.cpp \ 59 60 src/__bits/test/array.cpp \ -
uspace/lib/cpp/include/__bits/test/tests.hpp
r69cc156 r09416c12 285 285 void test_bind(); 286 286 }; 287 288 class algorithm_test: public test_suite 289 { 290 public: 291 bool run(bool) override; 292 const char* name() override; 293 private: 294 void test_non_modifying(); 295 }; 287 296 } 288 297 -
uspace/lib/cpp/include/impl/algorithm.hpp
r69cc156 r09416c12 88 88 */ 89 89 90 // TODO: Function has to be MoveConstructible91 90 template<class InputIterator, class Function> 92 91 Function for_each(InputIterator first, InputIterator last, Function f) … … 204 203 template<class InputIterator, class Predicate> 205 204 typename iterator_traits<InputIterator>::difference_type 206 count (InputIterator first, InputIterator last, Predicate pred)205 count_if(InputIterator first, InputIterator last, Predicate pred) 207 206 { 208 207 typename iterator_traits<InputIterator>::difference_type cnt{};
Note:
See TracChangeset
for help on using the changeset viewer.