Re:C++ is faster and safer than Rust (2020)
by jcelerier on Sunday October 10, 2021 @06:29AM
(#28817294)
> If you define different things for post and pre increment
They are defined as different things. One returns the current value and increments, the second increments the current value and returns it. In the first case you have to cache the previous value, in the second you don't. If your operators don't do that they are bugged and wrong.
They are defined as different things. One returns the current value and increments, the second increments the current value and returns it. In the first case you have to cache the previous value, in the second you don't. If your operators don't do that they are bugged and wrong.