{"id":971,"date":"2017-05-20T11:17:53","date_gmt":"2017-05-20T02:17:53","guid":{"rendered":"http:\/\/dev.activebasic.com\/egtra\/?p=971"},"modified":"2017-05-20T11:17:53","modified_gmt":"2017-05-20T02:17:53","slug":"filesystempath%e3%81%ae%e6%96%87%e5%ad%97%e3%81%ae%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/","title":{"rendered":"filesystem::path\u306e\u6587\u5b57\u306e\u578b"},"content":{"rendered":"<p>\u4ee5\u4e0b\u306epath\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u3067\u3059\u3002\u3053\u308c\u3089\u304c\u5185\u90e8\u3067\u4f7f\u7528\u3059\u308b\u578b\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u3068\u3044\u3046\u8a71\u3067\u3059\u3002<\/p>\n<ul>\n<li>C++17\u3067\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5165\u308bstd::filesystem::path<\/li>\n<li>Boost.Filesystem v3\u306eboost::filesystem::path<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089path\u30af\u30e9\u30b9\u306f\u3001\u5185\u90e8\u3067\u306f\u6587\u5b57\u5217\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u6709\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u6587\u5b57\u5217\u306f\u3001\u5b9f\u884c\u74b0\u5883\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u4f7f\u7528\u3055\u308c\u308b\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5b9f\u884c\u74b0\u5883\u306b\u3088\u3063\u3066\u3001\u4f7f\u7528\u3059\u308b\u6587\u5b57\u306e\u578b\u3082\u7570\u306a\u308a\u307e\u3059\u3002Boost\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Windows\u74b0\u5883\u3067\u306f\u3001<strong>wchar_t<\/strong>\u3002<\/li>\n<li>POSIX\u74b0\u5883\u3068\u305d\u306e\u4ed6\u306e\u74b0\u5883\u3067\u306f\u3001<strong>char<\/strong>\u3002<\/li>\n<\/ul>\n<p>C++17\u3067\u306f\u3001\u3082\u3061\u308d\u3093\u305d\u306e\u3088\u3046\u306a\u76f4\u63a5\u7684\u306a\u898f\u5b9a\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3001\u540c\u69d8\u306bWindows\u3067wchar_t\u3001POSIX\u74b0\u5883\u3067char\u3068\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u4f8b\u3068\u3057\u3066\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059 (N4659 30.10.8 Class [fs.class.path]\u306e\u6700\u5f8c\u306eexample)\u3002<\/p>\n<p>\u3053\u308c\u306b\u95a2\u9023\u3059\u308b\u578b\u3068\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<dl>\n<dt>value_type<\/dt>\n<dd>\u4e0a\u8a18\u306e\u6587\u5b57\u578b\u3067\u3059\u3002<\/dd>\n<dt>string_type<\/dt>\n<dd><code>basic_string&lt;value_type&gt;<\/code>\u578b\u3067\u3059\u3002<\/dd>\n<dt>\u30e1\u30f3\u30d0\u30fc\u95a2\u6570 const string_type&amp; native() const noexcept;<\/dt>\n<dd>path\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4fdd\u6709\u3057\u3066\u3044\u308b\u6587\u5b57\u5217\u3078\u306e\u53c2\u7167\u3092\u8fd4\u3057\u307e\u3059\u3002<\/dd>\n<dt>\u30e1\u30f3\u30d0\u30fc\u95a2\u6570 const value_type* c_str() const noexcept;<\/dt>\n<dd>path\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4fdd\u6709\u3057\u3066\u3044\u308b\u6587\u5b57\u5217\u3078\u306econst\u30dd\u30a4\u30f3\u30bf\u3092\u8fd4\u3057\u307e\u3059\u3002<code>native().c_str()<\/code>\u3068\u540c\u3058\u3067\u3059\u3002<\/dd>\n<dt>\u30e1\u30f3\u30d0\u30fc\u95a2\u6570 operator string_type() const;<\/dt>\n<dd>\u6697\u9ed9\u578b\u5909\u63db\u3067\u3059\u3002path\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4fdd\u6709\u3057\u3066\u3044\u308b\u6587\u5b57\u5217\u306e\u30b3\u30d4\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002Boost\u7248\u306b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/dd>\n<dt>\u30e1\u30f3\u30d0\u30fc\u95a2\u6570 string_type::size_type size() const noexcept;<\/dt>\n<dd>path\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4fdd\u6709\u3057\u3066\u3044\u308b\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u8fd4\u3057\u307e\u3059\u3002<code>native().size()<\/code>\u3068\u540c\u3058\u3067\u3059\u3002C++17\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u7248\u306b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/dd>\n<\/dl>\n<p>\u305f\u3068\u3048\u3070\u3001Windows\u3067CreateFileW\u95a2\u6570\u306e\u5b9f\u5f15\u6570\u306bpath\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5024\u3092\u6e21\u305d\u3046\u3068\u3044\u3046\u5834\u5408\u3001\u65b0\u3057\u3044\u6587\u5b57\u5217\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u8fd4\u3059wstring()\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u3088\u308a\u3082\u3001\u6587\u5b57\u5217\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3089\u306a\u3044c_str()\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u306e\u307b\u3046\u304c\u52b9\u7387\u7684\u3067\u3059\u3002<\/p>\n<p>\u306a\u3093\u3067Windows\u3060\u3051wchar_t\u306a\u306e\u304b\u3068\u8a00\u3048\u3070\u3001OS\u306eAPI\u304cwchar_t\uff08\u305f\u3060\u3057UTF-16\uff09\u3060\u304b\u3089\u3067\u3059\u306d\u3002<a href=\"https:\/\/www.boost.org\/doc\/libs\/1_50_0\/libs\/filesystem\/doc\/v3_design.html\">Boost Filesystem Version 3 Design<\/a>\u3067\u8ff0\u3079\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u3067UTF-8\u56fa\u5b9a\u306a\u3069\u306b\u306a\u3089\u306a\u3044\u306e\u304cBoost\u3084\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3089\u3057\u3055\u3068\u8a00\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001path\u30af\u30e9\u30b9\u306f\u3001Windows\u3060\u3051wchar_t\u6587\u5b57\u5217\u3067\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u66f8\u304d\u305f\u304b\u3063\u305f\u306e\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++17\u304b\u3089\u306estd::filesystem::path\u3084Boost.FileSystem\u3067\u306f\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305f\u6587\u5b57\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u3067\u306fwchar_t\u3067\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],"tags":[45,324,323],"class_list":["post-971","post","type-post","status-publish","format-standard","hentry","category-cpp","tag-boost","tag-boost-filesystem","tag-cplusplus17"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>filesystem::path\u306e\u6587\u5b57\u306e\u578b - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d<\/title>\n<meta name=\"description\" content=\"C++17\u304b\u3089\u306estd::filesystem::path\u3084Boost.FileSystem\u3067\u306f\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305f\u6587\u5b57\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u3067\u306fwchar_t\u3067\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\/2017\/05\/20\/971\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"filesystem::path\u306e\u6587\u5b57\u306e\u578b - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"og:description\" content=\"C++17\u304b\u3089\u306estd::filesystem::path\u3084Boost.FileSystem\u3067\u306f\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305f\u6587\u5b57\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u3067\u306fwchar_t\u3067\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/\" \/>\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=\"2017-05-20T02:17:53+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\/2017\/05\/20\/971\/\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/\",\"name\":\"filesystem::path\u306e\u6587\u5b57\u306e\u578b - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"isPartOf\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\"},\"datePublished\":\"2017-05-20T02:17:53+00:00\",\"dateModified\":\"2017-05-20T02:17:53+00:00\",\"author\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\"},\"description\":\"C++17\u304b\u3089\u306estd::filesystem::path\u3084Boost.FileSystem\u3067\u306f\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305f\u6587\u5b57\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u3067\u306fwchar_t\u3067\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/dev.activebasic.com\/egtra\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"filesystem::path\u306e\u6587\u5b57\u306e\u578b\"}]},{\"@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":"filesystem::path\u306e\u6587\u5b57\u306e\u578b - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"C++17\u304b\u3089\u306estd::filesystem::path\u3084Boost.FileSystem\u3067\u306f\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305f\u6587\u5b57\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u3067\u306fwchar_t\u3067\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\/2017\/05\/20\/971\/","og_locale":"ja_JP","og_type":"article","og_title":"filesystem::path\u306e\u6587\u5b57\u306e\u578b - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","og_description":"C++17\u304b\u3089\u306estd::filesystem::path\u3084Boost.FileSystem\u3067\u306f\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305f\u6587\u5b57\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u3067\u306fwchar_t\u3067\u3059\u3002","og_url":"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/","og_site_name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","article_publisher":"https:\/\/www.facebook.com\/ysk.noh","article_published_time":"2017-05-20T02:17:53+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\/2017\/05\/20\/971\/","url":"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/","name":"filesystem::path\u306e\u6587\u5b57\u306e\u578b - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","isPartOf":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#website"},"datePublished":"2017-05-20T02:17:53+00:00","dateModified":"2017-05-20T02:17:53+00:00","author":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164"},"description":"C++17\u304b\u3089\u306estd::filesystem::path\u3084Boost.FileSystem\u3067\u306f\u3001\u74b0\u5883\u306b\u5fdc\u3058\u305f\u6587\u5b57\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001Windows\u3067\u306fwchar_t\u3067\u3059\u3002","breadcrumb":{"@id":"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dev.activebasic.com\/egtra\/2017\/05\/20\/971\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/dev.activebasic.com\/egtra\/"},{"@type":"ListItem","position":2,"name":"filesystem::path\u306e\u6587\u5b57\u306e\u578b"}]},{"@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\/971"}],"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=971"}],"version-history":[{"count":0,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}