다음을 통해 공유


CAtlList::RemoveTail

목록의 끝에 있는 요소를 제거 하려면이 메서드를 호출 합니다.

E RemoveTail( );

반환 값

목록의 끝에 있는 요소를 반환합니다.

설명

꼬리의 요소 목록에서 삭제 됩니다 및 메모리를 해제 합니다.요소의 복사본이 반환 됩니다.목록이 비어 있는 경우 디버그 빌드에서 어설션 오류가 발생 합니다.

예제

// Define the integer list
CAtlList<int> myList;

// Populate the list
myList.AddTail(100);
myList.AddTail(200);
myList.AddTail(300);

// Confirm the tail of the list
ATLASSERT(myList.GetTail() == 300);

// Remove the tail of the list
ATLASSERT(myList.RemoveTail() == 300);

// Confirm the new tail of the list
ATLASSERT(myList.GetTail() == 200);   

요구 사항

헤더: atlcoll.h

참고 항목

참조

CAtlList 클래스

CAtlList::RemoveTailNoReturn

CAtlList::RemoveHead

CAtlList::RemoveHeadNoReturn