| 5171 | } |
| 5172 | |
| 5173 | void assertWithSideEffect_std_begin(const std::vector<std::string>& v) { |
| 5174 | // cppcheck-suppress checkLibraryFunction // TODO |
| 5175 | assert(std::is_sorted(std::begin(v), std::end(v), [](const std::string& a, const std::string& b) { |
| 5176 | return a.size() < b.size(); |
| 5177 | })); // cppcheck-suppress checkLibraryNoReturn |
| 5178 | } |
| 5179 | |
| 5180 | void assertWithSideEffect_std_prev_next(const std::vector<int>& v, std::vector<int>::const_iterator it) { |
| 5181 | assert(std::prev(it, 1) == v.begin()); |