System::Compare メソッド

System::Compare(const TA&, const TB&) method

2 つの値を比較します。

template<typename TA,typename TB> std::enable_if_t<!std::is_floating_point<TA>::value &&!std::is_floating_point<TB>::value, int> System::Compare(const TA &a, const TB &b)
パラメーター説明
TA最初の比較対象の型
TB2 番目の比較対象の型
パラメーター説明
aconst TA&最初の比較対象
bconst TB&2 番目の比較対象

ReturnValue

-1 if a compares less than b; 0 if the values are equal; 1 if a compares greater than b

参照

System::Compare(const TA&, const TB&) method

2 つの浮動小数点値を比較します。

template<typename TA,typename TB> std::enable_if_t<std::is_floating_point<TA>::value &&std::is_floating_point<TB>::value, int> System::Compare(const TA &a, const TB &b)
パラメーター説明
TA最初の比較対象の型
TB2 番目の比較対象の型
パラメーター説明
aconst TA&最初の比較対象
bconst TB&2 番目の比較対象

ReturnValue

-1 if a compares less than b; 0 if the values are equal; 1 if a compares greater than b

参照