24. 6.5 COPY VS. MOVE
オブジェクトはいつcopy(Copy Constructor/Assignemt Operator
が呼ばれる)されて、 いつmove(Move Constructor/Assignemt
Operatorが呼ばれる)されるの?
通常の関数のoverload解決ルールと一緒。bindの可否と優先順
位。結論、rvalueはmoveされる。
Value
R V L V(non const型) L V (const 型)
R V Reference できる(優先) できない できない
L V Reference できない できる(優先) できない
const L V Reference できる できる できる
34. 9 参考情報
"C++ Rvalue References Explained"
"Back to the Basics! Essentials of Modern C++
Style@CPPCON2014," Herb Sutter,
"std::move@cppreference.com"
"Effective Modern C++," Scott Meyers
http://thbecker.net/articles/rvalue_references/section_01.html
https://www.youtube.com/watch?v=xnqTKD8uD64
http://en.cppreference.com/w/cpp/utility/move