|
operator concept.I disagree. Although C++ isn't a language of my love it has great
operator+= increases value IN-PLACE. So you just can't += immutable
(by design) object.
Same thing with strings: you may optimize string growing by reserving 2^N bytes
(where 2^(N -1) < real_size <= 2^N) on each reallocation.
So API can and should give a programmer an idea about what's inside.