Share via


CAtlMap::SetOptimalLoad

Call this method to set the optimal load of the CAtlMap object.

void SetOptimalLoad( 
   float fOptimalLoad, 
   float fLoThreshold, 
   float fHiThreshold, 
   bool bRehashNow = false  
);

Parameters

  • fOptimalLoad
    The optimal load ratio.

  • fLoThreshold
    The lower threshold for the load ratio.

  • fHiThreshold
    The upper threshold for the load ratio.

  • bRehashNow
    Flag indicating if the hash table should be recalculated.

Remarks

This method redefines the optimal load value for the CAtlMap object. See CAtlMap::CAtlMap for a discussion of the various parameters. If bRehashNow is true, and the number of elements is outside the minimum and maximum values, the hash table is recalculated.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlMap Class