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
要求
Header: atlcoll.h