API:System.Generics.Defaults.TDelegatedComparer

From RAD Studio API Documentation

TDelegatedComparerSystem.Generics.Defaults.TComparerSystem.TInterfacedObjectSystem.TObject

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. {{#multireplace:System.Generics.Defaults.TDelegatedComparer|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Generics.Defaults.TComparer|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Generics.Defaults.TComparer|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

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