operator()()

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

Comparison function for types with operator < available.

template<typename Q> std::enable_if<detail::has_operator_less<Q>::value, bool>::type System::Collections::Generic::ComparerAdapter<T>::operator()(const Q &x, const Q &y) const

Template parameters

ParameterDescription
QType being compared; template for type conversion availability.

Arguments

ParameterTypeDescription
xconst Q&First value to compare.
yconst Q&Second value to compare.

Return Value

True if x is considered less than y, false otherwise.

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

Comparison function for types with operator < not available.

template<typename Q> std::enable_if<!detail::has_operator_less<Q>::value, bool>::type System::Collections::Generic::ComparerAdapter<T>::operator()(const Q &x, const Q &y) const

Template parameters

ParameterDescription
QType being compared; template for type conversion availability.

Arguments

ParameterTypeDescription
xconst Q&First value to compare.
yconst Q&Second value to compare.

Return Value

True if comparator is set and x is considered less than y, false otherwise.

See Also