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
voidCleanup(T *)
voidCleanup(CBase *)

Member Functions Documentation

Cleanup(T *)

voidCleanup(T *aPtr)[static, inline]

Parameters

T * aPtr

Cleanup(CBase *)

voidCleanup(CBase *aPtr)[static, inline]

Parameters

CBase * aPtr