Compartir a través de


CAtlMap::Rehash

Call this method to rehash the CAtlMap object.

void Rehash(
   UINT nBins = 0 
);

Parameters

  • nBins
    The new number of bins to use in the hash table. See CAtlMap::CAtlMap for an explanation.

Remarks

If nBins is 0, CAtlMap calculates a reasonable number based on the number of elements in the map and the optimal load setting. Normally the rehashing process is automatic, but if CAtlMap::DisableAutoRehash has been called, this method will perform the necessary resizing.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlMap Class

Other Resources

CAtlMap Members