System.Generics.Defaults.TCustomComparer

From RAD Studio API Documentation
Jump to: navigation, search

System.Generics.Defaults.TSingletonImplementationSystem.TObjectTCustomComparer

Delphi

TCustomComparer<T> = class(TSingletonImplementation, IComparer<T>, IEqualityComparer<T>)

C++

template<typename T> class PASCALIMPLEMENTATION TCustomComparer__1 : public TSingletonImplementation

Properties

Type Visibility Source Unit Parent
class public
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults System.Generics.Defaults

Description

TCustomComparer is a generic base for classes that implement the IComparer and IEqualityComparer interfaces.

Use TCustomComparer as a base for classes that have to support both comparison and equality checking. The Compare, Equals, and GetHashCode methods are abstract and thus must be implemented in descendant classes.

See Also

Code Examples