{"url":"https://osyo-manga.hatenadiary.org/entry/20111117/1321503217","height":"190","type":"rich","title":"std::unique_ptr \u306b\u95a2\u6570\u306e\u30ab\u30b9\u30bf\u30e0\u30c7\u30ea\u30fc\u30bf\u3092\u6e21\u3059","description":"\u305d\u308c\u3001Boost.MultiIndex \u306e global_fun \u51fa\u3067\u304d\u308b\u3088\uff01\u3063\u3066\u4e8b\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 [\u30bd\u30fc\u30b9] #include <boost/multi_index/global_fun.hpp> #include <memory> #include <iostream> namespace mi = boost::multi_index; void deleter(int* p){ std::cout << \"delete\" << std::endl; delete p; } int main(){ std::unique_ptr<int, mi::global_fun<int*, v\u2026","version":"1.0","author_url":"https://blog.hatena.ne.jp/osyo-manga/","blog_url":"https://osyo-manga.hatenadiary.org/","author_name":"osyo-manga","provider_url":"https://hatena.blog","image_url":null,"provider_name":"Hatena Blog","width":"100%","blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20111117%2F1321503217\" title=\"std::unique_ptr \u306b\u95a2\u6570\u306e\u30ab\u30b9\u30bf\u30e0\u30c7\u30ea\u30fc\u30bf\u3092\u6e21\u3059 - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2011-11-17 13:13:37","categories":["C++"]}