<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>programming</anon>
  </categories>
  <description>条件によってデータに書ける処理を変更したい場合に、関数ポインタを使って動的に処理を切り替えようと次のようなコードを書きました。 typedef double (*Executer)(double); double nantoka_function(int type) { double value = tekito; Executer f = GetFunc(type); return f(value); } で、割とパフォーマンスが重要な箇所なので、Executerになるいろいろな関数はインライン関数にしました。しかし、上記のようなコードの場合、パラメータは実行時にしか受け取ることができないの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20050708%2F1120792214&quot; title=&quot;関数ポインタをインライン関数に入れる - 閑古鳥&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>2005-07-08 12:10:14</published>
  <title>関数ポインタをインライン関数に入れる</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20050708/1120792214</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
