operator()()

ComparerType::operator()(const Q&, const Q&) const method

Compares value types implementing IComparable interface.

template<typename Q> std::enable_if<std::is_base_of<System::IComparable<Q>, Q>::value||has_method_compareto<Q>::value, bool>::type System::Collections::Generic::Details::ComparerType<T>::operator()(const Q &a, const Q &b) const

Template parameters

ParameterDescription
QType to compare.

Arguments

ParameterTypeDescription
aconst Q&LHS value.
bconst Q&RHS value.

Return Value

True if a is considered less than b, false otherwise.

ComparerType::operator()(const Q&, const Q&) const method

Compares primitive value types and objects not implementing IComparable interface.

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 System::Collections::Generic::Details::ComparerType<T>::operator()(const Q &a, const Q &b) const

Template parameters

ParameterDescription
QType to compare.

Arguments

ParameterTypeDescription
aconst Q&LHS value.
bconst Q&RHS value.

Return Value

True if a is considered less than b, false otherwise.

ComparerType::operator()(const Q&, const Q&) const method

Compares floating point types.

template<typename Q> std::enable_if<std::is_floating_point<Q>::value, bool>::type System::Collections::Generic::Details::ComparerType<T>::operator()(const Q &a, const Q &b) const

Template parameters

ParameterDescription
QType to compare.

Arguments

ParameterTypeDescription
aconst Q&LHS value.
bconst Q&RHS value.

Return Value

True if a is considered less than b, false otherwise.

See Also