Condividi tramite


CRBMap::CRBMap

The constructor.

explicit CRBMap( 
   size_t nBlockSize = 10  
) throw( );

Parameters

  • nBlockSize
    The block size.

Remarks

The nBlockSize parameter is a measure of the amount of memory allocated when a new element is required. Larger block sizes reduce calls to memory allocation routines, but use more resources. The default will allocate space for 10 elements at a time.

See the documentation for the base class CRBTree for information on the other methods available.

Example

// Define a map object which has an 
// integer key, a double value, and a 
// block size of 5
CRBMap<int, double> myMap(5);

Requirements

Header: atlcoll.h

See Also

Reference

CRBMap Class

CRBMap::~CRBMap