{"published":"2008-08-08 19:36:42","height":"190","provider_url":"https://hatena.blog","version":"1.0","author_name":"faith_and_brave","image_url":null,"author_url":"https://blog.hatena.ne.jp/faith_and_brave/","title":" C++0x ScopeGuard + Lambda Expression","url":"https://faithandbrave.hateblo.jp/entry/20080808/1218191802","width":"100%","categories":["C++"],"blog_url":"https://faithandbrave.hateblo.jp/","description":"C++ \u306b\u306f ScopeGuard \u3068\u3044\u3046\u30a4\u30c7\u30a3\u30aa\u30e0\u304c\u3042\u308a\u307e\u3059 ScopeGuard \u3068\u306f\u3001\u95a2\u6570\u5185\u3067\u306e\u7c21\u6613\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u30b9\u30b3\u30fc\u30d7\u3092\u629c\u3051\u305f\u969b\u306b\u5b9f\u884c\u3059\u308b\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 ScopeGuard \u306f\u3001 Boost C++ Libraries \u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059 #include <cstdio> #include <boost/multi_index/detail/scope_guard.hpp> using namespace boost::multi_index::detail; int main() { FILE *fp = fopen(\"./a.txt\", \"rb\");\u2026","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080808%2F1218191802\" title=\" C++0x ScopeGuard + Lambda Expression - 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>","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046"}