{"provider_url":"https://hatena.blog","description":"N3974 - Polymorphic Deleter for Unique Pointers std::shared_ptr<void>\u306f\u3001\u4ee3\u5165\u3055\u308c\u305f\u4efb\u610f\u306e\u578b\u306e\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u9069\u5207\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u304c\u3001std::unique_ptr<void>\u306f\u3067\u304d\u306a\u3044\u3002\u3053\u306e\u63d0\u6848\u306f\u3001\u305d\u308c\u3092\u306a\u3093\u3068\u304b\u3057\u3088\u3046\u3068\u3044\u3046\u3082\u306e\u3002 \u6280\u8853\u7684\u306b\u306f\u3001\u3053\u3046\u3044\u3046\u3053\u3068\u3092\u3059\u308b\uff1a #include <iostream> #include <memory> struct X { ~X() { std::cout << \"destructor\" << std::endl; } }; struct void_deleter { std::functi\u2026","width":"100%","height":"190","categories":["C++"],"blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","image_url":null,"author_url":"https://blog.hatena.ne.jp/faith_and_brave/","version":"1.0","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2014%2F06%2F04%2F172754\" title=\"unique_ptr&lt;void&gt;\u3067\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3076 - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-06-04 17:27:54","title":"unique_ptr<void>\u3067\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3076","blog_url":"https://faithandbrave.hateblo.jp/","provider_name":"Hatena Blog","author_name":"faith_and_brave","url":"https://faithandbrave.hateblo.jp/entry/2014/06/04/172754"}