OnGetObjectSize method

Called by the base class to determine the object's size, in bytes.

Syntax

unsigned long retVal = object.OnGetObjectSize();

Parameters

This method has no parameters.

Remarks

The default implementation returns sizeof( *this ). If the object allocates resources, the derived class should override this method to provide more accurate information. This information helps the container manage memory more accurately.