operator()()

ComparerType< SharedPtr< T > >::operator()(const System::SharedPtr<Q>&, const System::SharedPtr<Q>&) const method

Compares pointer types implementing IComparable interface.

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

Template parameters

ParameterDescription
QType to compare.

Arguments

ParameterTypeDescription
aconst System::SharedPtr<Q>&LHS value.
bconst System::SharedPtr<Q>&RHS value.

Return Value

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

ComparerType< SharedPtr< T > >::operator()(const System::SharedPtr<Q>&, const System::SharedPtr<Q>&) const method

Compares pointer types not implementing IComparable interface.

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

Template parameters

ParameterDescription
QType to compare.

Arguments

ParameterTypeDescription
aconst System::SharedPtr<Q>&LHS value.
bconst System::SharedPtr<Q>&RHS value.

Return Value

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

See Also