C++ · Vectors

size() is unsigned

A vector's size can't be negative, and C++ holds it in a type with no negative values, which changes what subtraction does.