{"version":"1.0","image_url":null,"categories":["C++"],"description":"\u554f\u984c\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3001(a)\u3001(b)\u3001(c)\u3001\u3069\u306e\u95a2\u6570\u304c\u547c\u3070\u308c\u308b\u3067\u3057\u3087\u3046\u304b\u3002 #include <iostream> using std::cout; // (a) template <typename T> void f(T) { cout << \"f(T)\"; } // (b) template <> void f(int*) { cout << \"f(int*)\"; } // (c) template <typename T> void f(T*) { cout << \"f(T*)\"; } int main() { int* p; f(p); } \u6b63\u89e3\u306f(c)\u3067\u3059\u3002C++\u3067\u306f\u95a2\u6570\u306e\u30aa\u2026","url":"https://nekko1119.hatenablog.com/entry/2014/06/05/232132","provider_url":"https://hatena.blog","blog_url":"https://nekko1119.hatenablog.com/","published":"2014-06-05 23:21:32","title":"C++\u306e\u95a2\u6570\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u89e3\u6c7a\u306b\u3064\u3044\u3066","provider_name":"Hatena Blog","author_name":"nekko1119","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekko1119.hatenablog.com%2Fentry%2F2014%2F06%2F05%2F232132\" title=\"C++\u306e\u95a2\u6570\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u89e3\u6c7a\u306b\u3064\u3044\u3066 - C++\u3068\u8272\u3005\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/nekko1119/","height":"190","blog_title":"C++\u3068\u8272\u3005","type":"rich"}