System::Compare-methode

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

Vergelijkt twee waarden.

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)
ParameterBeschrijving
TAHet type van de eerste comparand
TBHet type van de tweede comparand
ParameterTypeBeschrijving
eenconst TA&De eerste operand
bconst TB&De tweede operand

ReturnValue

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

Zie ook

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

Vergelijkt twee floating‑point‑waarden.

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)
ParameterBeschrijving
TAHet type van de eerste comparand
TBHet type van de tweede comparand
ParameterTypeBeschrijving
eenconst TA&De eerste operand
bconst TB&De tweede operand

ReturnValue

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

Zie ook