CAtlList::RemoveHead
머리의 목록에 있는 요소를 제거 하려면이 메서드를 호출 합니다.
E RemoveHead( );
반환 값
머리의 목록에 있는 요소를 반환합니다.
설명
Head 요소 목록에서 삭제 되 고 메모리가 해제 됩니다. 요소의 복사본이 반환 됩니다. 목록이 비어 있는 경우 디버그 빌드에서 어설션 오류가 발생 합니다.
예제
// Define the integer list
CAtlList<int> myList;
// Populate the list
myList.AddTail(100);
myList.AddTail(200);
myList.AddTail(300);
// Confirm the head of the list
ATLASSERT(myList.GetHead() == 100);
// Remove the head of the list
ATLASSERT(myList.RemoveHead() == 100);
// Confirm the new head of the list
ATLASSERT(myList.GetHead() == 200);
요구 사항
헤더: atlcoll.h