System.Currency.operator +

提供: RAD Studio API Documentation
移動先: 案内検索

C++

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

プロパティ

種類 可視性 ソース ユニット
function public syscurr.h System Currency


説明

指定された値を Currency オブジェクトに加算します。

+ 演算子を使用すると,rhs オペランドで指定された値を Currency オブジェクトに加算できます。rhs オペランドが別の Currency オブジェクトである場合,+ 演算子はその値を Currency オブジェクトに加算します。rhs オペランドが整数値または double 値である場合,+ 演算子はその値を Currency オブジェクトの値に加算します。

関連するフレンド演算子には,以下の 2 つがあります。

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

int lhs と Currency オブジェクト rhs の合計値を保持する,新しい Currency オブジェクトを返します。

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

double lhs と Currency オブジェクト rhs の合計値を保持する,新しい Currency オブジェクトを返します。

関連項目