Test std::for_each

This commit is contained in:
Daniel Marjamäki 2016-11-02 10:01:56 +01:00
parent fd67bbf2d3
commit 18f466a880
1 changed files with 5 additions and 0 deletions

View File

@ -3215,4 +3215,9 @@ void stdalgorithm(const std::list<int> &ints1, const std::list<int> &ints2)
// cppcheck-suppress mismatchingContainers
// cppcheck-suppress ignoredReturnValue
std::count_if(ints1.begin(), ints2.end(), pred);
// <!-- Function std::for_each(InputIterator first, InputIterator last, Function func) -->
// cppcheck-suppress mismatchingContainers
std::for_each(ints1.begin(), ints2.end(), [](int i){});
}