CAtlArray::IsEmpty

Llame a este método para comprobar si la matriz está vacía.

bool IsEmpty( ) const throw( );

Valor devuelto

Devuelve true si la matriz está vacía, false.

Comentarios

La matriz se vacío si no contiene ningún elemento.Por consiguiente, incluso si la matriz contiene elementos vacíos, no está vacío.

Ejemplo

// Define an array of chars
CAtlArray<char> cArray;

// Add an element
cArray.Add('a');

// Confirm array is not empty
ATLASSERT(!cArray.IsEmpty());

// Remove all elements
cArray.RemoveAll();

// Confirm array is empty
ATLASSERT(cArray.IsEmpty());   

Requisitos

encabezado: atlcoll.h

Vea también

Referencia

Clase CAtlArray

CAtlArray::AssertValid