Public Member Functions | |
template<typename Q > | |
std::enable_if< std::is_base_of< System::IComparable< Q >, Q >::value||has_method_compareto< Q >::value, bool >::type | operator() (const Q &a, const Q &b) const |
template<typename Q > | |
std::enable_if<!(std::is_base_of< IComparable< Q >, Q >::value||has_method_compareto< Q >::value) &&!std::is_floating_point< Q >::value, bool >::type | operator() (const Q &a, const Q &b) const |
template<typename Q > | |
std::enable_if< std::is_floating_point< Q >::value, bool >::type | operator() (const Q &a, const Q &b) const |
Compares elements using 'less' semantics.
T | Compared elements type. |
|
inline |
Compares value types implementing IComparable interface.
Q | Type to compare. |
a | LHS value. |
b | RHS value. |
a
is considered less than b
, false otherwise.
|
inline |
Compares primitive value types and objects not implementing IComparable interface.
Q | Type to compare. |
a | LHS value. |
b | RHS value. |
a
is considered less than b
, false otherwise.
|
inline |
Compares floating point types.
Q | Type to compare. |
a | LHS value. |
b | RHS value. |
a
is considered less than b
, false otherwise.