C++ Intermediate · exercise 03
Copy, move, rule of five
Show the difference between copying and moving a buffer.
C++ Intermediate lesson 03Guided steps
- 1.Announce 'copied' in the copy constructor and 'moved' in the move constructor.
- 2.Copy one buffer, then move another.
- 3.After a move the source is valid but empty: print its size.
Your code
Your code is saved in this browser after every run and restored next time.