2010-08-08から1日間の記事一覧
魔導書Vol.1で触れられていたC++0xのmoveが気になったので,ちょっと書いてみた. #include <iostream> using namespace std; struct Foo { int v_; Foo() : v_(0) { cout << "ctor (default) for " << this << endl; } Foo(int a) : v_(a) { cout << "ctor (with int)</iostream>…