{"url":"https://yohhoy.hatenadiary.jp/entry/20161204/p1","width":"100%","title":"range-based for\u3068\u6587\u5b57\u8d70\u67fb","categories":["C++","C++1z"],"image_url":null,"type":"rich","author_url":"https://blog.hatena.ne.jp/yohhoy/","version":"1.0","blog_url":"https://yohhoy.hatenadiary.jp/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20161204%2Fp1\" title=\"range-based for\u3068\u6587\u5b57\u8d70\u67fb - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yohhoy","published":"2016-12-04 00:00:00","provider_url":"https://hatena.blog","blog_title":"yohhoy\u306e\u65e5\u8a18","description":"C++11\u3067\u5c0e\u5165\u3055\u308c\u305f range-based for \u69cb\u6587\u3092\u7528\u3044\u3066\u3001\u6587\u5b57\u5217\u3092\u4e00\u6587\u5b57\u3065\u3064\u8d70\u67fb\u3059\u308b\u65b9\u6cd5\u3002*1 \u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb \u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\u306fconst char\u914d\u5217\u578b\uff08\u2192id:yohhoy:20150213\uff09\u3067\u3042\u308b\u305f\u3081\u3001range-based for \u69cb\u6587\u306b\u3088\u308b\u8981\u7d20\u8d70\u67fb\u304c\u53ef\u80fd\u3002\u305f\u3060\u3057\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\u672b\u5c3e\u306b\u81ea\u52d5\u8ffd\u52a0*2\u3055\u308c\u308bNUL\u7d42\u7aef\u6587\u5b57('\\0')\u3082\u8d70\u67fb\u5bfe\u8c61\u3068\u306a\u308b\u3053\u3068\u306b\u7559\u610f\u3002 #include <cstdio> for (char c: \"Hello\") { // const char[6]\u578b std::printf(\"(%d)\", c); } // (72)(101)(108)(108)(11\u2026","provider_name":"Hatena Blog"}