共用方式為


CMap::GetStartPosition

POSITIONGetStartPosition()const;

Return Value

A POSITION value that indicates a starting position for iterating the map; or NULL if the map is empty.

Remarks

Starts a map iteration by returning a POSITION value that can be passed to a GetNextAssoc call. The iteration sequence is not predictable; therefore, the “first element in the map” has no special significance.

Example

See the example for CMap::SetAt.

CMap OverviewClass MembersHierarchy Chart

See Also   CMap::GetNextAssoc