Freigeben über


CStringT::MakeReverse

Reverses the order of the characters in the CStringT object.

CStringT& MakeReverse();

Return Value

The resulting reversed string.

Remarks

Returns a copy of the string but with all characters reversed.

Example

// typedef CStringT<TCHAR, StrTraitATL<TCHAR, ChTraitsCRT<TCHAR>>> CAtlString;

CAtlString s(_T("abc"));

ASSERT(s.MakeReverse() == _T("cba"));   

Requirements

Header: cstringt.h

See Also

Concepts

CStringT Class

CStringT Members