CList::GetTail
가져옵니다의 CObject 꼬리가 목록의 요소를 나타내는 포인터입니다.
TYPE& GetTail( );
const TYPE& GetTail() const;
매개 변수
- 형식
템플릿 매개 변수 목록에서 요소의 형식을 지정 합니다.
반환 값
반환 값에 대 한 내용은 GetHead.
설명
목록에 전화 하기 전에 비어 있어야 GetTail. 목록이 비어 있으면 다음 Mfc 라이브러리의 디버그 버전을 어설션 합니다. 사용 IsEmpty 목록에 요소가 포함 되어 있는지 확인 합니다.
예제
// Define myList.
CList<CString,CString&> myList;
// Add an element to the end of the list.
myList.AddTail(CString(_T("ABC")));
// Verify the element was added to the end of the list.
ASSERT(CString(_T("ABC")) == myList.GetTail());
요구 사항
헤더: afxtempl.h