API:System.Generics.Defaults.TCustomComparer

提供:RAD Studio API Documentation

TCustomComparerSystem.Generics.Defaults.TSingletonImplementationSystem.TObject

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 の基本実装が必要で参照カウントが無効なシンプルなクラスの基底クラスです。 {{#multireplace:System.Generics.Defaults.TCustomComparer|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} は {{#multireplace:System.Generics.Defaults.TSingletonImplementation|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を継承しています。以下の内容はすべて {{#multireplace:System.Generics.Defaults.TSingletonImplementation|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を参照しています。

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

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

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

関連項目