TPtrCleanupStrategy Class Reference

#include <emanaged.h>

class TPtrCleanupStrategy
Public Member Functions
voidCleanup(T *)
voidCleanup(CBase *)

Detailed Description

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.

See also: 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

Member Function Documentation

Cleanup ( T * )

voidCleanup(T *aPtr)[static, inline]

Cleanup ( CBase * )

voidCleanup(CBase *aPtr)[static, inline]