CComCurrency::operator +=
This operator is used to perform addition on a CComCurrency object and assign the result to the current object.
const CComCurrency & operator +=(
const CComCurrency & cur
);
Parameters
- cur
The CComCurrency object.
Return Value
Returns the updated CComCurrency object. In the event of an error, such as an overflow, this operator calls AtlThrow with an HRESULT describing the error.
Example
CComCurrency cur(10, 2500);
cur += CComCurrency(4, 2500);
ATLASSERT(cur == CComCurrency(14, 5000));
Requirements
Header: atlcur.h