1 .. title:: clang-tidy - readability-use-anyofallof
3 readability-use-anyofallof
4 ==========================
6 Finds range-based for loops that can be replaced by a call to ``std::any_of`` or
7 ``std::all_of``. In C++ 20 mode, suggests ``std::ranges::any_of`` or
8 ``std::ranges::all_of``.
14 bool all_even(std::vector<int> V) {
21 // return std::ranges::all_of(V, [](int I) { return I % 2 == 0; });