CAtlArray::AssertValid

 

Call this method to confirm that the array object is valid.

Syntax

void AssertValid( ) const;

Remarks

If the array object is not valid, ATLASSERT will throw an assertion. This method is available only if _DEBUG is defined.

Example

CAtlArray<float> fArray;
// AssertValid only exists in debug builds
#ifdef _DEBUG
fArray.AssertValid();   
#endif

Requirements

Header: atlcoll.h

See Also

CAtlArray Class
CAtlArray::IsEmpty