Increment operators

Synopses

Declared in <bsls_atomic.h>

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

Atomically increment the value of this object by 1 and return the value prior to being incremented.

Types::Uint64
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