(C++) operator-=
February 24, 2017 · View on GitHub
(C++) operator-=
operator-= is the operator to decrease a variable's value by a certain value, without making a copy.
#include <cassert> int main() { int x = 8; x-=3; assert(x == 5); }