System::Compare method

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

يقارن قيمتين.

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)
Parameterالوصف
TAنوع المقارن الأول
TBنوع المقارن الثاني
ParameterTypeالوصف
aconst TA&المقارنة الأولى
bconst TB&المقارنة الثانية

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

يقارن قيمتين عائمة.

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)
Parameterالوصف
TAنوع المقارن الأول
TBنوع المقارن الثاني
ParameterTypeالوصف
aconst TA&المقارنة الأولى
bconst TB&المقارنة الثانية

ReturnValue

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

انظر أيضًا