operator()()
Contents
[
Hide
]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
Parameter | Description |
---|---|
Q | Type to compare. |
Arguments
Parameter | Type | Description |
---|---|---|
a | const Q& | LHS value. |
b | const 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
Parameter | Description |
---|---|
Q | Type to compare. |
Arguments
Parameter | Type | Description |
---|---|---|
a | const Q& | LHS value. |
b | const 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
Parameter | Description |
---|---|
Q | Type to compare. |
Arguments
Parameter | Type | Description |
---|---|---|
a | const Q& | LHS value. |
b | const Q& | RHS value. |
Return Value
True if a is considered less than b, false otherwise.
See Also
- Class IComparable
- Struct has_method_compareto
- Struct ComparerType
- Namespace System::Collections::Generic::Details
- Library Aspose.Slides