We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

CStringT::MakeReverse

Reverses the order of the characters in the CStringT object.

CStringT& MakeReverse();

The resulting reversed string.


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

CAtlString s(_T("abc"));

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


Header: cstringt.h

Show: