CMapStringToOb::CMapStringToOb

Syntax

CMapStringToOb( int nBlockSize = 10 );

Parameters

nBlockSize

The memory-allocation granularity for extending the map.

Remarks

Constructs an empty CString-to-CObject* map. As the map grows, memory is allocated in units of nBlockSize entries.

Example

See CObList::CObList for a listing of the CAge class used in all collection examples.

CMapStringToOb map(20); // Map on the stack with blocksize of 20

CMapStringToOb* pm = new CMapStringToOb; // Map on the heap

// with default blocksize