CList::IsEmpty
Označuje, zda tento seznam obsahuje žádné prvky.
BOOL IsEmpty( ) const;
Vrácená hodnota
Nenulová hodnota, pokud je tento seznam prázdný; jinak 0.
Příklad
// Define myList.
CList<CString,CString&> myList;
// Add three elements to the list.
myList.AddTail(CString(_T("XYZ")));
myList.AddTail(CString(_T("ABC")));
myList.AddTail(CString(_T("123")));
// Remove the head element until the list is empty.
CString str;
while (!myList.IsEmpty())
{
str = myList.RemoveHead();
TRACE(_T("%s\r\n"), (LPCTSTR) str);
}
Požadavky
Záhlaví: afxtempl.h