CAtlList::AssertValid

Call this method to confirm the list is valid.

void AssertValid( ) const;

Remarks

In debug builds, an assertion failure will occur if the list object is not valid. To be valid, an empty list must have both the head and tail pointing to NULL, and a list that is not empty must have both the head and tail pointing to valid addresses.

Example

// Define the list
CAtlList<int> myList;

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

Requirements

Header: atlcoll.h

See Also

Reference

CAtlList Class

CAtlList::IsEmpty