Re:Counting up vs. counting down
by lorenzhs on Thursday November 19, 2015 @11:18AM
(#10595584)
In C++, underflows of unsigned types are specified in the Standard. -1 is equivalent to the largest value your unsigned type can hold. This means that you can rely on this behaviour.
[ Parent
| on HN ]
There are no comments on this comment yet.