リストの末尾要素を削除します。
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