Partager via


CAutoVectorPtr::Allocate

Call this method to allocate the memory required by the array of objects pointed to by CAutoVectorPtr.

bool Allocate( 
   size_t nElements  
) throw( );

Parameters

  • nElements
    The number of elements in the array.

Return Value

Returns true if the memory is successfully allocated, false on failure.

Remarks

In debug builds, an assertion failure will occur if the CAutoVectorPtr::m_p member variable currently points to an existing value; that is, it is not equal to NULL.

Requirements

Header: atlbase.h

See Also

Reference

CAutoVectorPtr Class