c++mfc

How to tell if a class method changes the object in-place (in Microsoft's documentation)?


By experiment, it seems CStringT::MakeReverse and CStringT::MakeUpper all change the string in-place.

What is the keyword on CStringT Class documentation, which I should pay attention to, saying these operations are "in-place"?

Returning a value implies the methods create new copies in my newbie's opinion.


Solution

  • Collecting the good points mentioned in the comments above:

    There are several points in the CStringT documentation that give hints that the methods are mutating the current object in place: