Affected rules
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) {
}
Affected rules
CTR55-CPPDescription
This query has a fairly restricted view of what a valid bounds check consists of. Consider expanding to support
iter != lastas a valid bound check, iflastis derived fromend(). 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) { }