CArray::SetSize

This member function establishes the size of an empty or existing array; allocating memory if necessary.

If the new size is smaller than the old size, then the array is truncated and all unused memory is released.

Syntax

void SetSize( int nNewSize, int nGrowBy = –1 );
throw( CMemoryException );

At a Glance

Header file: Afxtempl.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CArray Overview, CArray Member Functions, CArray::GetUpperBound, CArray::GetSize