Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1.  
  2. //Constructor
  3. Sorted_List::Sorted_List(Sorted_List &&l)
  4. {
  5.     front = l.front;
  6.     listSize = l.listSize;
  7.  
  8.     l.front = nullptr;
  9.     l.listSize = 0;
  10. }
  11.  
  12.  
  13. //Den andra skiten
  14. Sorted_List &Sorted_List::operator=(Sorted_List &&l)
  15. {
  16.     front = l.front;
  17.     listSize = l.listSize;
  18.     return *this;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement