<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Cryolite</author_name>
  <author_url>https://blog.hatena.ne.jp/Cryolite/</author_url>
  <blog_title>Cry's Blog</blog_title>
  <blog_url>https://blog.cryolite.net/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>効率の問題．functorは可能ならばその呼び出しがinline化される．一方，関数へのポインタはcall backする側でinline化されることはまずありえない．（関数へのポインタにどの関数へのポインタが代入されているかは実行時にしか解決できないから） overloadの問題．overloadされた関数をcall backとして用いる場合，ポインタは関数のsignature全体が決定されていなければならず，call backする側をgenericに記述することが不可能である（規格書(13.4)を参考）．一方functorは，call backとして引き渡す際にoverloadの解決を実際に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.cryolite.net%2Fentry%2F20040402%2Fp2&quot; title=&quot;functorが関数へのポインタよりもcall backに適する理由 - Cry&amp;#39;s Blog&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>2004-04-02 00:00:01</published>
  <title>functorが関数へのポインタよりもcall backに適する理由</title>
  <type>rich</type>
  <url>https://blog.cryolite.net/entry/20040402/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
