Share via


CMapStringToOb::InitHashTable

Inicializa la tabla hash.

void InitHashTable(
   UINT hashSize,
   BOOL bAllocNow = TRUE
);

Parámetros

  • hashSize
    Número de entradas de la tabla hash.

  • bAllocNow
    Si TRUE, asigna la tabla hash sobre la inicialización; si no la tabla se asigna cuando es necesario.

Comentarios

Para obtener el máximo rendimiento, el tamaño de la tabla hash debe ser un número primo.Para minimizar los conflictos, el tamaño debe ser aproximadamente el 20 por ciento más grande que el conjunto de datos previsto mayor.

La tabla siguiente se muestran otras funciones miembro que son similares a CMapStringToOb::InitHashTable.

Clase

Función miembro

CMapPtrToPtr

InitHashTable vacío (UINT hashSize, BOOL bAllocNow = TRUE);

CMapPtrToWord

InitHashTable vacío (UINT hashSize, BOOL bAllocNow = TRUE);

CMapStringToString

InitHashTable vacío (UINT hashSize, BOOL bAllocNow = TRUE);

CMapStringToPtr

InitHashTable vacío (UINT hashSize, BOOL bAllocNow = TRUE);

CMapWordToOb

InitHashTable vacío (UINT hashSize, BOOL bAllocNow = TRUE);

CMapWordToPtr

InitHashTable vacío (UINT hashSize, BOOL bAllocNow = TRUE);

Requisitos

encabezado: afxcoll.h

Vea también

Referencia

Clase de CMapStringToOb

Gráfico de jerarquía