Share via


CSimpleStringT::Empty

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

void Empty( ) throw( );

Remarks

For more information, see Strings: CString Exception Cleanup.

Example

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

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

Requirements

Header: atlsimpstr.h

See Also

Reference

CSimpleStringT Class

CSimpleStringT::IsEmpty

Other Resources

CSimpleStringT Members