Move assignment operator: Difference between revisions

Content deleted Content added
WikiCleanerBot (talk | contribs)
m v2.04b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation)
Oconnor663 (talk | contribs)
wording tweak for clarity
Line 18:
// If we're not trying to move the object into itself...
if (this != &other) {
delete[] this->data_; // DeleteFree thethis string's original data.
this->data_ = other.data_; // Copy the other string's data pointer into this string.
other.data_ = nullptr; // Finally, reset the other string's data pointer.
}