API:System.Generics.Defaults.TCustomComparer

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
TSingletonImplementation is a base for simple classes that need a basic IInterface implementation, with reference counting disabled.
System.Generics.Defaults.TCustomComparer inherits from System.Generics.Defaults.TSingletonImplementation. All content below this line refers to System.Generics.Defaults.TSingletonImplementation.
TSingletonImplementation is a base for simple classes that need a basic IInterface implementation, with reference counting disabled.
TSingletonImplementation is a thread-safe base class for Delphi classes that support interfaces. Unlike TInterfacedObject, TSingletonImplementation does not implement reference counting.
TSingletonImplementation is particularly useful when you have to create a singleton object that will not be destroyed when all references to it are lost.