Lecture 4 - Slide 10 : 40
Use of move constructors

We illustrate the use of move constructors with funny constructors

point.h
Class Point with a variety of constructors - including a move constructor.
point.cc
Funny implementations of the constructors.
prog.cc
Use of constructors - with local variables of class type.
prog-commented.cc
Same program with more comments.
prog-output
Program output.
Go to exercise
Move constructors and copy constructors