<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xyuyux</author_name>
  <author_url>https://blog.hatena.ne.jp/xyuyux/</author_url>
  <blog_title>xyuyuxの日記</blog_title>
  <blog_url>https://xyuyux.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>結局main側のインタフェースを変えずにどう実装するかに着目した結果こうなった。 #include #include #include // Widgetのfooから呼ばれる関数オブジェクトを作る template struct widget_foo { T operator ()(int i) { T tmp; std::stringstream ss; ss ss &gt;&gt; tmp; return tmp; } };// intに特殊化したバージョン template &lt;&gt; struct widget_foo { int operator ()(int i) { return ++i; } }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxyuyux.hatenadiary.org%2Fentry%2F20090124%2F1232806823&quot; title=&quot;続)メンバー関数テンプレートの特殊化 - xyuyuxの日記&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>2009-01-24 23:20:23</published>
  <title>続)メンバー関数テンプレートの特殊化</title>
  <type>rich</type>
  <url>https://xyuyux.hatenadiary.org/entry/20090124/1232806823</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
