{"version":"1.0","author_name":"winebarrel","height":"190","description":"\u4f7f\u3046\u6a5f\u4f1a\u306f\u306a\u3055\u305d\u3046\u306a\u3002 #include <iostream> #include <new> using namespace std; class Foo { int i_; public: Foo() : i_(0) { cout << \"Foo(0)\" << endl; } Foo(int i) : i_(i) { cout << \"Foo(\" << i_ << \")\" << endl; } Foo(const Foo& foo) { cout << \"copy constructor << \" << foo.i_ << endl; this->i_ = foo.i_; } ~Foo() \u2026","blog_url":"https://so-wh.at/","width":"100%","type":"rich","url":"https://so-wh.at/entry/20090527/p2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20090527%2Fp2\" title=\" placement new - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" placement new","categories":["C++"],"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/winebarrel/","image_url":null,"blog_title":"so what","provider_name":"Hatena Blog","published":"2009-05-27 00:00:01"}