MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / assertWithSideEffect_std_prev_next

Function assertWithSideEffect_std_prev_next

test/cfg/std.cpp:5180–5184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5178}
5179
5180void assertWithSideEffect_std_prev_next(const std::vector<int>& v, std::vector<int>::const_iterator it) {
5181 assert(std::prev(it, 1) == v.begin());
5182 // cppcheck-suppress checkLibraryNoReturn
5183 assert(std::next(it, 1) == v.end());
5184}
5185
5186std::vector<int> containerOutOfBounds_push_back() { // #12775
5187 std::vector<int> v;

Callers

nothing calls this directly

Calls 3

nextFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected