다음을 통해 공유


CAtlList::AddTailList

기존 목록이이 목록 끝에 추가 하려면이 메서드를 호출 합니다.

void AddTailList(
   const CAtlList< E, ETraits >* plNew 
);

매개 변수

  • plNew
    추가할 목록입니다.

설명

목록에서를 가리키는 plNew 후 마지막 요소 (있는 경우) 목록 개체에 삽입 됩니다.마지막 요소에는 plNew 목록에 따라서 꼬리 됩니다.디버그 빌드에서 어설션 오류가 발생 합니다 plNew null입니다.

예제

// Define two integer lists
CAtlList<int> myList1;
CAtlList<int> myList2;

// Fill up the first list
myList1.AddTail(1);
myList1.AddTail(2);
myList1.AddTail(3);

// Add an element to the second list
myList2.AddTail(4);

// Insert the first list into the second
myList2.AddTailList(&myList1);

// The second list now contains:
// 4, 1, 2, 3   

요구 사항

헤더: atlcoll.h

참고 항목

참조

CAtlList 클래스

CAtlList::AddTail

CAtlList::AddHead