{"provider_url":"https://hatena.blog","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","\u30b2\u30fc\u30e0"],"type":"rich","version":"1.0","height":"190","description":"Singleton\u30af\u30e9\u30b9\u306b\u4f9d\u5b58\u95a2\u4fc2\u306e\u3042\u308b\u30e1\u30f3\u30d0\u3092\u7f6e\u304f\u969b\u306b\u3069\u3046\u3084\u308c\u3070\u3044\u3044\u306e\u304b\u8272\u3005\u691c\u8a3c\u3057\u3066\u307f\u307e\u3057\u305f C++\u3067Singleton\u30d1\u30bf\u30fc\u30f3\u3092\u66f8\u304f\u6642\u306e\u57fa\u672c\u306e\u30b3\u30fc\u30c9 class Singleton { private: static Singleton *me; Singleton() { std::cout << \"Singleton()\" << std::endl; } ~Singleton() { std::cout << \"~Singleton()\" << std::endl; } public: static Singleton *GetInstance() { if (me == 0) me \u2026","provider_name":"Hatena Blog","published":"2011-12-29 00:00:00","url":"https://wordi.hatenadiary.org/entry/20111229/p1","image_url":null,"author_url":"https://blog.hatena.ne.jp/wordi/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwordi.hatenadiary.org%2Fentry%2F20111229%2Fp1\" title=\"Singleton\u30d1\u30bf\u30fc\u30f3\u3092\u8272\u3005\u691c\u8a3c\u3057\u3066\u307f\u305f - wordi\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","blog_title":"wordi\u306e\u65e5\u8a18","blog_url":"https://wordi.hatenadiary.org/","title":"Singleton\u30d1\u30bf\u30fc\u30f3\u3092\u8272\u3005\u691c\u8a3c\u3057\u3066\u307f\u305f","author_name":"wordi"}