API:System.Generics.Defaults.TCustomComparer

提供: RAD Studio API Documentation
移動先: 案内検索

System.Generics.Defaults.TSingletonImplementationSystem.TObjectTCustomComparer

Delphi

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

C++

template<typename T> class PASCALIMPLEMENTATION TCustomComparer__1 : public TSingletonImplementation

プロパティ

種類 可視性 ソース ユニット
class public
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults System.Generics.Defaults

説明

TSingletonImplementation は、IInterface の基本実装が必要で参照カウントが無効なシンプルなクラスの基底クラスです。

System.Generics.Defaults.TCustomComparer は System.Generics.Defaults.TSingletonImplementation を継承しています。以下の内容はすべて System.Generics.Defaults.TSingletonImplementation を参照しています。

TSingletonImplementation は、IInterface の基本実装が必要で参照カウントが無効なシンプルなクラスの基底クラスです。

TSingletonImplementation は、インターフェイスをサポートする Delphi クラスのスレッドセーフな基底クラスです。TInterfacedObject とは異なり、TSingletonImplementation では参照カウントを実装していません。

TSingletonImplementation は、自分への参照がすべて失われたときにも破棄されないシングルトン オブジェクトを作成する必要がある場合に特に役立ちます。

関連項目