{"type":"rich","provider_url":"https://hatena.blog","height":"190","blog_title":"C++Builder\u597d\u304d\u306e\u79d8\u5bc6\u57fa\u5730","title":"\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\u306e\u4f7f\u3044\u65b9 \u305d\u306e2\uff1ashared_ptr","url":"https://a7m.hatenablog.jp/entry/2024/12/30/160142","author_name":"A7M","description":"shared_ptr\u3092\u4f7f\u3063\u3066\u307f\u308b unique_ptr\u304c\u5909\u6570\u306e\u5bff\u547d\u304c\u5c3d\u304d\u305f\u6bb5\u968e\u3067\u30e1\u30e2\u30ea\u9818\u57df\u3092\u958b\u653e\u3059\u308b\u306e\u306b\u5bfe\u3057\u3001shared_ptr\u306f\u53c2\u7167\u30ab\u30a6\u30f3\u30bf\u3092\u6301\u3061\u53c2\u7167\u30ab\u30a6\u30f3\u30bf\u304c\u30bc\u30ed\u306b\u306a\u308b\u3068\u30e1\u30e2\u30ea\u9818\u57df\u3092\u958b\u653e\u3059\u308b\u3002 #include <iostream> #include <memory> // \u5186\u3092\u8868\u3059\u56f3\u5f62 class CPrimitiveCircle { public: CPrimitiveCircle() : x(0), y(0), r(0) {} CPrimitiveCircle(int xx, int yy, int rr) : x(xx), y(yy), r(rr) {} int x, y, r;\u2026","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/A7M/","image_url":null,"width":"100%","categories":[],"published":"2024-12-30 16:01:42","version":"1.0","blog_url":"https://a7m.hatenablog.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa7m.hatenablog.jp%2Fentry%2F2024%2F12%2F30%2F160142\" title=\"\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\u306e\u4f7f\u3044\u65b9 \u305d\u306e2\uff1ashared_ptr - C++Builder\u597d\u304d\u306e\u79d8\u5bc6\u57fa\u5730\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}