CAtlList::AssertValid
呼叫這個方法會檢查清單中有效。
void AssertValid( ) const;
備註
如果清單物件無效,在偵錯組建中,判斷提示失敗時會發生。 若要有效,空白清單必須有指首尾 NULL,,而且不是 null 時服務之間急的清單有指向有效位址首尾。
範例
// Define the list
CAtlList<int> myList;
// AssertValid only exists in debug builds
#ifdef _DEBUG
myList.AssertValid();
#endif
需求
Header: atlcoll.h