Поделиться через


CSimpleStringT::Empty

Makes this CSimpleStringT object an empty string and frees memory as appropriate.

void Empty( ) throw( );

Заметки

For more information, see Strings: CString Exception Cleanup.

Пример

The following example demonstrates the use of CSimpleStringT::Empty.

CSimpleString s(_T("abc"), pMgr);
s.Empty();
_ASSERT(s.GetLength() == 0);   

Требования

Header: atlsimpstr.h

См. также

Основные понятия

CSimpleStringT Class

CSimpleStringT Members

CSimpleStringT::IsEmpty