<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekko1119</author_name>
  <author_url>https://blog.hatena.ne.jp/nekko1119/</author_url>
  <blog_title>C++と色々</blog_title>
  <blog_url>https://nekko1119.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>問題です。以下のコードで、(a)、(b)、(c)、どの関数が呼ばれるでしょうか。 #include &lt;iostream&gt; using std::cout; // (a) template &lt;typename T&gt; void f(T) { cout &lt;&lt; &quot;f(T)&quot;; } // (b) template &lt;&gt; void f(int*) { cout &lt;&lt; &quot;f(int*)&quot;; } // (c) template &lt;typename T&gt; void f(T*) { cout &lt;&lt; &quot;f(T*)&quot;; } int main() { int* p; f(p); } 正解は(c)です。C++では関数のオ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekko1119.hatenablog.com%2Fentry%2F2014%2F06%2F05%2F232132&quot; title=&quot;C++の関数のオーバーロード解決について - C++と色々&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>2014-06-05 23:21:32</published>
  <title>C++の関数のオーバーロード解決について</title>
  <type>rich</type>
  <url>https://nekko1119.hatenablog.com/entry/2014/06/05/232132</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
