{"version":"1.0","title":"RAII \u3092 ScopeGuard \u3092\u4f7f\u3063\u3066\u5b9f\u8df5","description":"RAII(Resource Acquisition Is Initialization)\u306b\u95a2\u3057\u3066\u306f\u30ea\u30f3\u30af\u5148\u3092\u53c2\u7167\u3057\u3066\u3082\u3089\u3046\u3068\u3057\u3066\u3001\u5148\u65e5\u306e ScopeGuard \u3092\u4f7f\u3063\u305f RAII \u306e\u5b9f\u88c5 (\u602a\u3057\u3044\u8868\u73fe\u3060\u306a\u3042) \u3092\u3001\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u305f\u3002\u81ea\u5206\u304c\u3061\u3083\u3093\u3068\u7406\u89e3\u3067\u304d\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u899a\u66f8\u3002 CloseFile \u306e\u7701\u7565 #include <boost/multi_index/detail/scope_guard.hpp> #include <windows.h> using namespace boost::multi_index::detail; void f() { HANDLE file = C\u2026","author_url":"https://blog.hatena.ne.jp/wata_d/","provider_name":"Hatena Blog","published":"2005-11-02 07:16:30","url":"https://www.little-cuckoo.jp/entry/20051102/1130883390","image_url":null,"blog_title":"\u9591\u53e4\u9ce5","height":"190","author_name":"wata_d","categories":["programming","C++"],"width":"100%","provider_url":"https://hatena.blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20051102%2F1130883390\" title=\"RAII \u3092 ScopeGuard \u3092\u4f7f\u3063\u3066\u5b9f\u8df5 - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://www.little-cuckoo.jp/"}