Partager via


CRBMultiMap::GetNextValueWithKey

Call this method to get the value associated with a given key and update the position value.

const V& GetNextValueWithKey( 
   POSITION& pos, 
   KINARGTYPE key  
) const throw( ); 
V& GetNextValueWithKey( 
   POSITION& pos, 
   KINARGTYPE key  
) throw( );

Parameters

Return Value

Returns the element pair associated with the given key.

Remarks

The position value is updated to point to the next value associated with the key. If no more values exist, the position value is set to NULL.

See the documentation for the base class CRBTree for information on the other methods available.

Example

See the example for CRBMultiMap::CRBMultiMap.

Requirements

Header: atlcoll.h

See Also

Reference

CRBMultiMap Class

CRBMultiMap::FindFirstWithKey

CRBMultiMap::GetNextWithKey