Decrement operators

Synopses

Declared in <bsls_atomic.h>

Atomically decrement the value of this object by 1 and return the resulting value.

unsigned int
operator‐‐();

Atomically decrement the value of this object by 1 and return the value prior to being decremented.

unsigned int
operator‐‐(int postfix);

Return Value

  • value of this object after the operation

  • value of this object prior to the operation

Parameters

Name

Description

postfix

unused parameter distinguishing the postfix operator

Created with MrDocs