<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yaneurao</author_name>
  <author_url>https://blog.hatena.ne.jp/yaneurao/</author_url>
  <blog_title>やねうらおブログ(移転しました)</blog_title>
  <blog_url>https://yaneurao.hatenadiary.com/</blog_url>
  <categories>
    <anon>programming</anon>
    <anon>yaneudoujou</anon>
  </categories>
  <description>前回、ループの条件は後判定になることが多いということについて書いた。 いま、次の列挙体について考えてみよう。enum A { x,y,z };列挙体Aすべての要素に対して何らかのアクションを行ないたいとする。foreach構文のようなものがあれば良いのだが、不運にもいま対象としている言語には無いとしよう。しかし、最初と最後の要素に関しては、A.begin , A.end というような alias が使えると仮定しよう。この場合、次のように前判定で書く必要がある。 A a = A.begin; do { do_something(); } while (a != A.end &amp;&amp; ++a)非常に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyaneurao.hatenadiary.com%2Fentry%2F20041103%2Fp1&quot; title=&quot; Part 4.変数の定義域(4) - やねうらおブログ(移転しました)&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>https://cdn-ak.d.st-hatena.com/diary/yaneurao/2004-11-03.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2004-11-03 00:00:00</published>
  <title> Part 4.変数の定義域(4)</title>
  <type>rich</type>
  <url>https://yaneurao.hatenadiary.com/entry/20041103/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
