The condition is the result of u--
, which is the value of u
before it was decremented.
In C and C++, an int
is convertible to bool by implicitly doing a != 0
comparison (0 is false
, everything else is true
).
b.back()
is the last element in a container, which is b[b.size() - 1]
, when size() != 0
.