CAtlList::AddHeadList
기존 목록 목록의 헤드에 추가 하려면이 메서드를 호출 합니다.
void AddHeadList(
const CAtlList< E, ETraits >* plNew
);
매개 변수
- plNew
추가할 목록입니다.
설명
목록에서를 가리키는 plNew 시작 기존 목록 부분에 삽입 됩니다. 디버그 빌드에서 어설션 오류가 발생 합니다 plNew null입니다.
예제
// Define two lists of integers
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.AddHeadList(&myList1);
// The second list now contains:
// 1, 2, 3, 4
요구 사항
헤더: atlcoll.h