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


CRBTree::GetNextAssoc

Call this method to get the key and value of an element stored in the map and advance the position to the next element.

void GetNextAssoc(
   POSITION& pos,
   KOUTARGTYPE key,
   VOUTARGTYPE value 
) const;

Параметры

  • pos
    The position counter, returned by a previous call to methods such as CRBTree::GetHeadPosition or CRBTree::FindFirstKeyAfter.

  • key
    Template parameter specifying the type of the tree's key.

  • value
    Template parameter specifying the type of the tree's value.

Заметки

The pos position counter is updated after each call. If the retrieved element is the last in the tree, pos is set to NULL.

Требования

Header: atlcoll.h

См. также

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

CRBTree Class

CRBTree Members

CRBTree::GetPrev

CRBTree::GetNext

CRBTree::GetAt