Note 10.5.1.
On some machines, comparing an
int
to the output from size
will generate a type error. This is because the size function returns an unsigned integer type. To keep the variable type consistent, you should use size_t
rather than int
for the type of iterator i
.