TPtrCleanupStrategy Class Reference

class TPtrCleanupStrategy

Strategy (policy) class that defines the default cleanup strategy for pointer types. For pointers to CBase-derived types, the default cleanup strategy is to call CBase::Delete with the managed pointer. For pointers to types that are not derived from CBase , the default cleanup strategy is to delete the managed pointer using non-array delete.

LCleanedupPtr to which this strategy type may be supplied as an (optional) second tamplate parameter LManagedPtr to which this strategy type may be supplied as an (optional) second tamplate parameter

Public Member Functions
void Cleanup (T *)
void Cleanup ( CBase *)

Member Functions Documentation

Cleanup(T *)

void Cleanup ( T * aPtr ) [static, inline]

Parameters

T * aPtr

Cleanup(CBase *)

void Cleanup ( CBase * aPtr ) [static, inline]

Parameters

CBase * aPtr