Поделиться через


CMap::PGetNextAssoc

Retrieves the map element pointed to by pAssocRec.

const CPair *PGetNextAssoc(
   const CPair* pAssocRet
) const;
CPair *PGetNextAssoc(
   const CPair* pAssocRet
);

Параметры

  • pAssocRet
    Points to a map entry returned by a previous PGetNextAssoc or CMap::PGetFirstAssoc call.

Возвращаемое значение

A pointer to the next entry in the map; see CMap::CPair. If the element is the last in the map, the value is NULL.

Заметки

Call this method to iterate through all the elements in the map. Retrieve the first element with a call to PGetFirstAssoc and then iterate through the map with successive calls to PGetNextAssoc.

Пример

See the example for CMap::PGetFirstAssoc.

Требования

Header: afxtempl.h

См. также

Основные понятия

CMap Class

CMap Members

Hierarchy Chart

CMap::PGetFirstAssoc

CMap::PLookup