<?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>
  </categories>
  <description>プログラミング言語C++における評価順規定の変遷についてメモ。本記事ではストリーム挿入(出力)演算子&lt;&lt;のみを扱うが、ストリーム抽出(入力)演算子&gt;&gt;にも同様に適用される。クイズ：下記プログラムを実行すると何が出力されるか？ #include &lt;iostream&gt; int main() { int i = 0; std::cout &lt;&lt; ++i &lt;&lt; ++i; // ★ } こたえ： C++14以前：未定義動作(undefined behavior)を引き起こすため、コンパイラや最適化有無によって出力結果は変化する。大抵は12もしくは22となる可能性が高いが、これ以外の出力が得られるかもしれな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20180204%2Fp1&quot; title=&quot;ストリーム入出力と評価順規定の厳格化 - 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>2018-02-04 00:00:00</published>
  <title>ストリーム入出力と評価順規定の厳格化</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20180204/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
