API:System.Generics.Defaults.TDelegatedComparer
Delphi
TDelegatedComparer<T> = class(TComparer<T>)
C++
template<typename T> class PASCALIMPLEMENTATION TDelegatedComparer__1 : public TComparer__1<T>
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | System.Generics.Defaults |
Description
TComparer is a generic base for classes that implement the IComparer interface.
System.Generics.Defaults.TDelegatedComparer inherits from System.Generics.Defaults.TComparer. All content below this line refers to System.Generics.Defaults.TComparer.
TComparer is a generic base for classes that implement the IComparer interface.
TComparer is an abstract base class for IComparer implementations and a provider of default IComparer implementations.
Use TComparer as a base for custom comparer classes. The Compare method is abstract and must be implemented in descendant classes.
TComparer also provides the possibility to create a default comparer for a given data type.
See Also
Code Examples