Closed
Description
Affected rules
CTR55-CPP
Description
This query has a fairly restricted view of what a valid bounds check consists of. Consider expanding to support iter != last
as a valid bound check, if last
is derived from end()
. We should also consider the case of utility methods on iterators, and whether they are correct at the call site.
Example
for (; iter != end; ++iter) {
}