This is an old version, view current version.
10.2 Compound subtraction and assignment
Compound addition and assignment works wherever the corresponding subtraction 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