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
pos
The position value, obtained with either a call to CRBMultiMap::FindFirstWithKey or CRBMultiMap::GetNextWithKey, or a previous call to GetNextValueWithKey.key
Specifies the key that identifies the element to be found.
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