System.Currency.operator +

From RAD Studio API Documentation
Jump to: navigation, search

C++

Currency __fastcall operator +(const Currency& rhs) const
Currency __fastcall operator +(int rhs) const
Currency __fastcall operator +(double rhs) const

Properties

Type Visibility Source Unit Parent
function public syscurr.h System Currency


Description

Adds a specified value to the Currency object.

Use the operator + to add the value specified by the rhs operand to the Currency object. If the rhs operand is another Currency object, the operator + adds its value to the Currency object. If it is an integer or double value, the operator + adds that value to the value of the Currency object.

Note that there are two related friend operator +s:

friend Currency __fastcall operator +(int lhs, const Currency& rhs);

returns a new Currency object that is the sum of int lhs and Currency object rhs.

friend Currency __fastcall operator +(double lhs, const Currency& rhs);

returns a new Currency object that is the sum of double lhs and Currency object rhs.

See Also