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
Currency __fastcall operator -() 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 オブジェクトを返します。

関連項目