Поделиться через


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

CMapPtrToPtr( INT_PTR nBlockSize = 10 );

CMapPtrToWord

CMapPtrToWord( INT_PTR nBlockSize = 10 );

CMapStringToPtr

CMapStringToPtr( INT_PTR nBlockSize = 10 );

CMapStringToString

CMapStringToString( INT_PTR nBlockSize = 10 );

CMapWordToOb

CMapWordToOb( INT_PTR nBlockSize = 10 );

CMapWordToPtr

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

См. также

Основные понятия

CMapStringToOb Class

CMapStringToOb Members

Hierarchy Chart