Share via


CCRTAllocator::Allocate

 

Call this static function to allocate memory.

Syntax

      static __declspec(allocator) void* Allocate(
   size_t nBytes 
) throw( );

Parameters

  • nBytes
    The number of bytes to allocate.

Return Value

Returns a void pointer to the allocated space, or NULL if there is insufficient memory available.

Remarks

Allocates memory. See malloc for more details.

Requirements

Header: atlalloc.h

See Also

CCRTAllocator Class
CCRTAllocator::Reallocate
CCRTAllocator::Free