<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C++1z</anon>
  </categories>
  <description>C++11で導入された range-based for 構文を用いて、文字列を一文字づつ走査する方法。*1 文字列リテラル 文字列リテラルはconst char配列型（→id:yohhoy:20150213）であるため、range-based for 構文による要素走査が可能。ただし文字列リテラル末尾に自動追加*2されるNUL終端文字('\0')も走査対象となることに留意。 #include &lt;cstdio&gt; for (char c: &quot;Hello&quot;) { // const char[6]型 std::printf(&quot;(%d)&quot;, c); } // (72)(101)(108)(108)(11…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20161204%2Fp1&quot; title=&quot;range-based forと文字走査 - yohhoyの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-12-04 00:00:00</published>
  <title>range-based forと文字走査</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20161204/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
