ComparerType

ComparerType struct

Compares elements using ’less’ semantics.

template<typename T>class ComparerType

Template parameters

ParameterDescription
TCompared elements type.

Methods

MethodDescription
std::enable_if<std::is_base_of<System::IComparable<Q>, Q>::value||has_method_compareto<Q>::value, bool>::type operator()(const Q&, const Q&) constCompares value types implementing IComparable interface.
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&, const Q&) constCompares primitive value types and objects not implementing IComparable interface.
std::enable_if<std::is_floating_point<Q>::value, bool>::type operator()(const Q&, const Q&) constCompares floating point types.

See Also