CAtlList::AssertValid

调用此方法确认列表是有效的。

void AssertValid( ) const;

备注

如果列表对象无效,在调试版本中,断言失败将发生。若要有效,空列表必须具有指向NULL的首尾,因此,不为空在实际使用时的列表具有指向有效地址的首尾。

示例

// Define the list
CAtlList<int> myList;

// AssertValid only exists in debug builds
#ifdef _DEBUG
myList.AssertValid();
#endif   

要求

Header: atlcoll.h

请参见

参考

CAtlList选件类

CAtlList::IsEmpty