SetSize
Updates array size to the requested size
BOOL SetSize( int nNewSize )
Returns a boolean indicating success or failure of the requested operation
EX1
#include <Array.h> struct PERSON { int nID; }; void Array_SetSize_ex1() { Array<PERSON&> arp(true); int nOldSize = arp.GetSize(); //should be zero; int nNewSize = 10; //set the size of the array as 10 if ( arp.SetSize(nNewSize) ) { printf("Set the size of the array as %d successfully.\n", arp.GetSize()); } else printf("Fail to set the size of the array as %d.\n", nNewSize); }
Array::GetSize
Array.h