Compare()

Enum::Compare(E, T) method

Performs the arithmetic comparison of the values of the specified enumeration constants.

template<typename T,typename _> static int System::Enum<E, Guard>::Compare(E a, T b)

Arguments

ParameterTypeDescription
aEThe first comparand
bTThe second comparand

Return Value

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

See Also