This is an old version, view current version.
10.1 Compound addition and assignment
Compound addition and assignment works wherever the corresponding addition and assignment would be well formed.
void
operator+=
(T x, U y)
x += y
is equivalent to x = x + y
. Defined for all types T
and U
where T = T + U
is well formed.
Available since 2.17, complex signatures added in 2.30