CMapStringToOb::CMapStringToOb
Constructs an empty CString-to-CObject* map.
CMapStringToOb(
INT_PTR nBlockSize = 10
);
Параметры
- nBlockSize
Specifies the memory-allocation granularity for extending the map.
Заметки
As the map grows, memory is allocated in units of nBlockSize entries.
The following table shows other member functions that are similar to CMapStringToOb:: CMapStringToOb.
Class |
Member Function |
---|---|
CMapPtrToPtr( INT_PTR nBlockSize = 10 ); |
|
CMapPtrToWord( INT_PTR nBlockSize = 10 ); |
|
CMapStringToPtr( INT_PTR nBlockSize = 10 ); |
|
CMapStringToString( INT_PTR nBlockSize = 10 ); |
|
CMapWordToOb( INT_PTR nBlockSize = 10 ); |
|
MapWordToPtr( INT_PTR nBlockSize = 10 ); |
Пример
CMapStringToOb map(20); // Map on the stack with blocksize of 20
CMapStringToOb* pm = new CMapStringToOb; // Map on the heap
// with default blocksize
See CObList::CObList for a listing of the CAge class used in all collection examples.
Требования
Header: afxcoll.h