CMapStringToOb::CMapStringToOb

Constructs an empty CString-to-CObject* map.

CMapStringToOb(
   INT_PTR nBlockSize = 10 
);

Parameters

  • nBlockSize
    Specifies the memory-allocation granularity for extending the map.

Remarks

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 );

Example

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.

Requirements

Header: afxcoll.h

See Also

Reference

CMapStringToOb Class

Hierarchy Chart

Other Resources

CMapStringToOb Members