<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>boleros</author_name>
  <author_url>https://blog.hatena.ne.jp/boleros/</author_url>
  <blog_title>ボレロ村上 - ENiyGmaA Code</blog_title>
  <blog_url>https://boleros.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>「constexpr を使うべき5の理由」ひとまず最終回です。 コンパイル時に計算ができると聞いて、誰もがまず思い浮かべる用途は、おそらく、実行時に必要となる値をあらかじめ計算しておくというものでしょう。 5.必要なものをなるべく早く用意しておくために 何度も繰り返し同じような計算を行い、しかも実行速度が要求されるような場合（例えばゲームなど）では、最適化のために 自明な計算をあらかじめ行っておいて結果をテーブルに保持しておくことがしばしばあると思います。 非常にシンプルな例として、度数法で [0 .. 90) の範囲の正弦値を保持するテーブルを考えてみます。 #include &lt;cmath&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboleros.hateblo.jp%2Fentry%2F20120615%2F1339750156&quot; title=&quot;constexpr を使うべき5の理由 - その5 - ボレロ村上 - ENiyGmaA Code&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>http://a0.twimg.com/profile_images/1887861869/PG_sister_bot_normal.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-06-15 17:49:16</published>
  <title>constexpr を使うべき5の理由 - その5</title>
  <type>rich</type>
  <url>https://boleros.hateblo.jp/entry/20120615/1339750156</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
