13
13
implementing the move constructor to move the information in base classes or
14
14
composed objects to their new destination object.
17
17
assuming it has a movable tt(char *d_brandName) data member and
18
18
assuming that tt(Land) is a move-aware class. The second example shows the
19
19
move constructor for the class tt(Land), assuming that it does not itself have
20
20
movable data members, but that its tt(Vehicle) base class is move-aware:
24
24
Land(std::move(tmp)), // anonimize `tmp'
25
25
d_brandName(tmp.d_brandName) // move the char *'s value