Share via


CAtlArray::AssertValid

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

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

Reference

CAtlArray Class

CAtlArray::IsEmpty