{"id":654,"date":"2014-03-24T00:39:23","date_gmt":"2014-03-23T15:39:23","guid":{"rendered":"http:\/\/dev.activebasic.com\/egtra\/?p=654"},"modified":"2016-05-18T23:42:32","modified_gmt":"2016-05-18T14:42:32","slug":"raii%e4%bb%a5%e5%a4%96%e3%81%ab%e3%82%82%e3%81%82%e3%82%8b%e5%be%8c%e5%87%a6%e7%90%86%e3%81%ae%e6%9b%b8%e3%81%8d%e6%96%b9","status":"publish","type":"post","link":"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/","title":{"rendered":"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9"},"content":{"rendered":"<p>\u8a00\u3063\u3066\u3057\u307e\u3048\u3070\u3001\u9ad8\u968e\u95a2\u6570\u306f\u4fbf\u5229\u3060\u306d\u3068\u3044\u3046\u8a71\u3067\u3082\u3042\u308b\u308f\u3051\u3067\u3059\u3001\u305d\u308c\u306b\u52a0\u3048\u3066C++\u7279\u6709\u306e\u4e8b\u60c5\u304c\u3042\u308b\u3060\u3051\u3067\u3002<\/p>\n<hr \/>\n<p><a href=\"https:\/\/speakerdeck.com\/iofg2100\/c-plus-plus-shi-dian-karafalserubyshao-jie?slide=52\">C++\u8996\u70b9\u304b\u3089\u306eRuby\u7d39\u4ecb \/\/ Speaker Deck<\/a>\u306e52\u30da\u30fc\u30b8\u76ee\u306e\u300c\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u3063\u305fRAII\u3063\u307d\u3044\u6a5f\u80fd\u300d\u3088\u308a\u3002<\/p>\n<blockquote>\n<h1>\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u3063\u305fRAII\u3063\u307d\u3044\u6a5f\u80fd<\/h1>\n<pre lang=\"ruby\">\r\nFile.open('some_file') do |file|\r\n  # \u51e6\u7406\r\nend\r\n<\/pre>\n<ul>\n<li>File.open\u30e1\u30bd\u30c3\u30c9\n<ul>\n<li>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u5f8c\u3001\u53d7\u3051\u53d6\u3063\u305f\u30d6\u30ed\u30c3\u30af\u3092\u5b9f\u884c<\/li>\n<li>\u4f8b\u5916\u306e\u767a\u751f\u6709\u7121\u306b\u304b\u304b\u308f\u3089\u305a\u6700\u5f8c\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b<\/li>\n<\/ul>\n<\/li>\n<li>\u30b9\u30b3\u30fc\u30d7\u3092\u629c\u3051\u308b\u3068\u81ea\u7b54\u7684\u306b\u30ea\u30bd\u30fc\u30b9\u304c\u9589\u3058\u3089\u308c\u308b\n<ul>\n<li>RAII\u3068\u5171\u901a\u3057\u3066\u3044\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u3053\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001C++\u306b\u306f\u4e8b\u5b9f\u4e0a\u300c\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u4f8b\u5916\u3092\u6295\u3052\u3066\u306f\u3044\u3051\u306a\u3044\u300d\u305f\u3081\u3067\u3059\uff08cf. More Effective C++ \u9805\u76ee11 \u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u767a\u751f\u3057\u305f\u4f8b\u5916\u3092\u6291\u3048\u308b\uff09\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u30d6\u30ed\u30c3\u30af\u5f15\u6570\u306e\u3088\u3046\u306b\u95a2\u6570\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3092\u5b9f\u5f15\u6570\u306b\u53d6\u308b\u95a2\u6570\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3059\u3002\u5f8c\u51e6\u7406\u306b\u5931\u6557\u3059\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u51e6\u7406\u3092\u62bd\u8c61\u5316\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u6709\u529b\u306a\u65b9\u6cd5\u306e1\u3064\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u3001Ruby\u306eFile.open\u306b\u76f8\u5f53\u3059\u308b\u95a2\u6570\u3092C++\u3067\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre lang=\"cpp\">\r\n#include <iostream>\r\n#include <fstream>\r\n#include <string>\r\n#include <exception>\r\n#include <type_traits>\r\n#include <functional>\r\n\/\/#include <boost\/range\/algorithm\/copy.hpp>\r\n\r\ntemplate<typename Char>\r\ninline void on_failure(std::basic_fstream<Char>& fs) {\r\n  fs.exceptions(std::ios_base::iostate());\r\n  fs.close();\r\n  if (!fs) {\r\n    std::throw_with_nested(std::ios_base::failure(\"close\"));\r\n  } else {\r\n    throw;\r\n  }\r\n}\r\n\r\ntemplate<typename F, typename Char = char>\r\nauto file_open(const char* filename, std::ios_base::openmode mode, F&& f)\r\n  -> typename std::enable_if<\r\n    !std::is_same<decltype(f(std::declval<std::fstream&#038;>())), void>::value,\r\n    decltype(f(std::declval<std::fstream&#038;>()))>::type\r\n{\r\n  std::basic_fstream<Char> fs(filename, mode);\r\n  fs.exceptions(std::ios_base::failbit | std::ios_base::badbit);\r\n  try {\r\n    auto result = f(fs);\r\n    fs.close();\r\n    return result;\r\n  } catch (...) {\r\n    on_failure(fs);\r\n  }\r\n}\r\n\r\ntemplate<typename F, typename Char = char>\r\nauto file_open(const char* filename, std::ios_base::openmode mode, F&& f)\r\n  -> typename std::enable_if<\r\n    std::is_same<decltype(f(std::declval<std::fstream&#038;>())),\r\n    void>::value, decltype(f(std::declval<std::fstream&#038;>()))>::type\r\n{\r\n  std::basic_fstream<Char> fs(filename, mode);\r\n  try {\r\n    fs.exceptions(std::ios_base::failbit | std::ios_base::badbit);\r\n    f(fs);\r\n  } catch (...) {\r\n    on_failure(fs);\r\n  }\r\n}\r\n\r\nint main() {\r\n  auto s = file_open(\"src.txt\", std::ios_base::in, [](std::istream& is) {\r\n    return std::string(\r\n      std::istreambuf_iterator<char>(is),\r\n      std::istreambuf_iterator<char>());\r\n  });\r\n  std::cout << s << std::endl;\r\n  file_open(\"dst.txt\", std::ios_base::out, [&#038;](std::ostream&#038; os) {\r\n    std::copy(s.cbegin(), s.cend(), std::ostreambuf_iterator<char>(os));\r\n    \/\/boost::copy(s, std::ostreambuf_iterator<char>(os));\r\n  });\r\n}\r\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001close\u3067\u306e\u5931\u6557\u3092\u3061\u3083\u3093\u3068\u62fe\u3063\u3066\u547c\u3073\u51fa\u3057\u5143\u3078throw\u3059\u308b\u51e6\u7406\u304c\u66f8\u3051\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u3068\u3081\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u4e00\u822c\u7684\u306b\u5f8c\u51e6\u7406\u3067\u5931\u6557\u306e\u53ef\u80fd\u6027\u304c\u3042\u308b\u51e6\u7406\u306f\u3001\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u4efb\u3059\u308f\u3051\u306b\u306f\u3044\u304b\u306a\u3044\u3002<\/li>\n<li>\u305d\u306e\u5236\u7d04\u3092\u8d85\u3048\u308b\u624b\u6bb5\u3068\u3057\u3066\u3001\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5f15\u6570\u306b\u53d6\u308b\u95a2\u6570\uff08Ruby\u306a\u3089\u30d6\u30ed\u30c3\u30af\u5f15\u6570\u3092\u53d6\u308b\u30e1\u30bd\u30c3\u30c9\uff09\u3092\u4f5c\u308b\u3068\u3044\u3046\u624b\u6bb5\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<p>\u30d5\u30a1\u30a4\u30ebIO\uff08\u7279\u306b\u5931\u6557\u306e\u691c\u51fa\u30fb\u30a8\u30e9\u30fc\u51e6\u7406\uff09\u306b\u3064\u3044\u3066\u306f\u3001\u6c17\u304c\u5411\u3044\u305f\u3089\u5225\u306e\u8a18\u4e8b\u3068\u3057\u3066\u66f8\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<hr \/>\n<p>\u30d5\u30a1\u30a4\u30eb\u306f\u9589\u3058\u308b\u307e\u3067\u304cIO\u3067\u3059\uff08\u300c\u5bb6\u306b\u5e30\u308b\u307e\u3067\u304c\u9060\u8db3\u3067\u3059\u300d\u8abf\u3067\uff09\u3002<\/p>\n<p><a href=\"https:\/\/linuxjm.osdn.jp\/html\/LDP_man-pages\/man2\/close.2.html\">Man page of CLOSE<\/a><\/p>\n<blockquote><p>\nclose() \u306e\u8fd4\u308a\u5024\u306e\u30c1\u30a7\u30c3\u30af\u306f\u3088\u304f\u7701\u7565\u3055\u308c\u308b\u304c\u3001 \u3053\u308c\u306f\u6df1\u523b\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30a8\u30e9\u30fc\u3067\u3042\u308b\u3002 \u524d\u306e write(2) \u51e6\u7406\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc\u304c\u6700\u5f8c\u306e close() \u306e\u3068\u304d\u306b\u306a\u3063\u3066\u521d\u3081\u3066\u901a\u77e5\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u3046\u308b\u3002 \u30d5\u30a1\u30a4\u30eb\u30af\u30ed\u30fc\u30ba\u306e\u969b\u306b\u8fd4\u308a\u5024\u3092\u30c1\u30a7\u30c3\u30af\u3057\u306a\u3044\u3068\u3001 \u6c17\u4ed8\u304b\u306a\u3044\u3046\u3061\u306b\u30c7\u30fc\u30bf\u3092\u5931\u3063\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u306a\u3044\u3002 \u3053\u308c\u306f\u7279\u306b NFS \u3084\u30c7\u30a3\u30b9\u30af\u30af\u30a9\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u306b\u898b\u3089\u308c\u308b\u3002\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u9ad8\u968e\u95a2\u6570\u306b\u3088\u308b\u5f8c\u51e6\u7406\u3092\u542b\u3080\u51e6\u7406\u306e\u62bd\u8c61\u5316\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002Ruby\u3068\u306e\u6bd4\u8f03\u8a18\u4e8b\u306b\u89e6\u767a\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u306b\u3088\u308b\u4f8b\u3067\u305d\u308c\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,20],"tags":[135,241,175],"class_list":["post-654","post","type-post","status-publish","format-standard","hentry","category-cpp","category-ruby","tag-exception_ptr","tag-iostream","tag-lambda-expression"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d<\/title>\n<meta name=\"description\" content=\"\u9ad8\u968e\u95a2\u6570\u306b\u3088\u308b\u5f8c\u51e6\u7406\u3092\u542b\u3080\u51e6\u7406\u306e\u62bd\u8c61\u5316\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002Ruby\u3068\u306e\u6bd4\u8f03\u8a18\u4e8b\u306b\u89e6\u767a\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u306b\u3088\u308b\u4f8b\u3067\u305d\u308c\u3092\u793a\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"og:description\" content=\"\u9ad8\u968e\u95a2\u6570\u306b\u3088\u308b\u5f8c\u51e6\u7406\u3092\u542b\u3080\u51e6\u7406\u306e\u62bd\u8c61\u5316\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002Ruby\u3068\u306e\u6bd4\u8f03\u8a18\u4e8b\u306b\u89e6\u767a\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u306b\u3088\u308b\u4f8b\u3067\u305d\u308c\u3092\u793a\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ysk.noh\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-23T15:39:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-18T14:42:32+00:00\" \/>\n<meta name=\"author\" content=\"egtra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@egtra\" \/>\n<meta name=\"twitter:site\" content=\"@egtra\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"egtra\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/\",\"name\":\"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"isPartOf\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\"},\"datePublished\":\"2014-03-23T15:39:23+00:00\",\"dateModified\":\"2016-05-18T14:42:32+00:00\",\"author\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\"},\"description\":\"\u9ad8\u968e\u95a2\u6570\u306b\u3088\u308b\u5f8c\u51e6\u7406\u3092\u542b\u3080\u51e6\u7406\u306e\u62bd\u8c61\u5316\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002Ruby\u3068\u306e\u6bd4\u8f03\u8a18\u4e8b\u306b\u89e6\u767a\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u306b\u3088\u308b\u4f8b\u3067\u305d\u308c\u3092\u793a\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/dev.activebasic.com\/egtra\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/\",\"name\":\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"description\":\"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\",\"name\":\"egtra\",\"sameAs\":[\"https:\/\/x.com\/egtra\"],\"url\":\"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"\u9ad8\u968e\u95a2\u6570\u306b\u3088\u308b\u5f8c\u51e6\u7406\u3092\u542b\u3080\u51e6\u7406\u306e\u62bd\u8c61\u5316\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002Ruby\u3068\u306e\u6bd4\u8f03\u8a18\u4e8b\u306b\u89e6\u767a\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u306b\u3088\u308b\u4f8b\u3067\u305d\u308c\u3092\u793a\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/","og_locale":"ja_JP","og_type":"article","og_title":"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","og_description":"\u9ad8\u968e\u95a2\u6570\u306b\u3088\u308b\u5f8c\u51e6\u7406\u3092\u542b\u3080\u51e6\u7406\u306e\u62bd\u8c61\u5316\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002Ruby\u3068\u306e\u6bd4\u8f03\u8a18\u4e8b\u306b\u89e6\u767a\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u306b\u3088\u308b\u4f8b\u3067\u305d\u308c\u3092\u793a\u3057\u307e\u3059\u3002","og_url":"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/","og_site_name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","article_publisher":"https:\/\/www.facebook.com\/ysk.noh","article_published_time":"2014-03-23T15:39:23+00:00","article_modified_time":"2016-05-18T14:42:32+00:00","author":"egtra","twitter_card":"summary_large_image","twitter_creator":"@egtra","twitter_site":"@egtra","twitter_misc":{"\u57f7\u7b46\u8005":"egtra","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/","url":"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/","name":"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","isPartOf":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#website"},"datePublished":"2014-03-23T15:39:23+00:00","dateModified":"2016-05-18T14:42:32+00:00","author":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164"},"description":"\u9ad8\u968e\u95a2\u6570\u306b\u3088\u308b\u5f8c\u51e6\u7406\u3092\u542b\u3080\u51e6\u7406\u306e\u62bd\u8c61\u5316\u306fC++\u3067\u3082\u6709\u7528\u3067\u3059\u3002Ruby\u3068\u306e\u6bd4\u8f03\u8a18\u4e8b\u306b\u89e6\u767a\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u306b\u3088\u308b\u4f8b\u3067\u305d\u308c\u3092\u793a\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dev.activebasic.com\/egtra\/2014\/03\/24\/654\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/dev.activebasic.com\/egtra\/"},{"@type":"ListItem","position":2,"name":"RAII\u4ee5\u5916\u306b\u3082\u3042\u308b\u5f8c\u51e6\u7406\u306e\u66f8\u304d\u65b9"}]},{"@type":"WebSite","@id":"https:\/\/dev.activebasic.com\/egtra\/#website","url":"https:\/\/dev.activebasic.com\/egtra\/","name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164","name":"egtra","sameAs":["https:\/\/x.com\/egtra"],"url":"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/654"}],"collection":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/comments?post=654"}],"version-history":[{"count":0,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/654\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/media?parent=654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/categories?post=654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/tags?post=654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}