So I\'m using size_t instead of int in any indexing for loop to prevent negative indices. But when counting down, this leads to an overflow:
size_t
int
The idiomatic, though not to everyone's taste way, is to use the slide operator:
for (size_t i = 10 + 1; i--> 0; )
It isn't really an operator but that's what it has become known as over the years.