다음을 통해 공유


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

Concepts

CSimpleStringT Class

CSimpleStringT Members

CSimpleStringT::IsEmpty