TResourceCleanupStrategy Class Reference

#include <emanaged.h>

class TResourceCleanupStrategy
Public Member Functions
voidCleanup(T *)

Detailed Description

Strategy (policy) class that defines the default cleanup strategy for managed resource class objects.

The default cleanup strategy is to call the cleanup member function of the managed class, which is the Close() member function of the managed class, unless explicitly defined otherwise, for example by using the provided DEFINE_CLEANUP_FUNCTION macro.

Member Function Documentation

Cleanup ( T * )

voidCleanup(T *aObjPtr)[static, inline]