Theron  6.00.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
virtual void Theron::IAllocator::Free ( void *const  memory,
const SizeType   
)
inlinevirtual

Frees a previously allocated block of contiguous memory of a known size.

Knowing the size of the freed block allows some implementations to cache and reuse freed blocks.

Parameters
memoryA pointer to the block of memory to be deallocated.
sizeThe size of the freed block.
Note
The default implementation, which implementors can override, simply calls Free with no size, ignoring the size parameter. This provides backwards compatibility with legacy implementations that don't implement this overload of Free.