...
Again, using a relational operator instead of equivalence guarantees loop termination. If begin >= end
the loop never executes its body.
Code Block | ||||
---|---|---|---|---|
| ||||
void f(size_t begin, size_t end) { size_t i; for (i = begin; i < end; ++i) { /* ... */ } } |
...
...
Again, using a relational operator instead of equivalence guarantees loop termination. If begin >= end
the loop never executes its body.
Code Block | ||||
---|---|---|---|---|
| ||||
void f(size_t begin, size_t end) { size_t i; for (i = begin; i < end; ++i) { /* ... */ } } |
...