alfredbuehler

Untitled

Jul 24th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.11 KB | None | 0 0
  1. X& X::operator= (X const& rhs) {
  2.   if (this != &rhs) {
  3.     X tmp (rhs);
  4.     swap (tmp);
  5.   }
  6.   return *this;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment