Condividi tramite


CMapStringToString::PGetNextAssoc

Retrieves the map element pointed to by pAssocRec.

const CPair *PGetNextAssoc(
   const CPair* pAssoc
) const;
CPair *PGetNextAssoc(
   const CPair* pAssoc
);

Parameters

  • pAssoc
    Points to a map entry returned by a previous PGetNextAssoc or PGetFirstAssoc call.

Return Value

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

Remarks

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.

Example

See the example for CMapStringToString::PGetFirstAssoc.

Requirements

Header: afxcoll.h

See Also

Concepts

CMapStringToString Class

CMapStringToString Members

Hierarchy Chart

CMapStringToString::PGetFirstAssoc

CMapStringToString::PLookup