BloombergLP::bdldfp::operator++

Apply the prefix ++ operator to the specified value and return its original value.

Synopsis

Declared in <bdldfp_decimal.h>

bdldfp::Decimal32
operator++(
    Decimal32& value,
    int unused);

Description

Note that this is a floating-point value so this operation may not change the value of this object at all (if the value is large) or it may just set it to 1.0 (if the original value is small).

Return Value

the original value of value

Parameters

NameDescription
valuedecimal object to modify
unusedunused argument distinguishing the postfix operator