{"type":"rich","provider_url":"https://hatena.blog","title":"\u95a2\u6570\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3068\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316","description":"#include <iostream> template<class T> void f(T t) { std::cout << \"A\" << std::endl; } template<class T> void f(T *p) { std::cout << \"B\" << std::endl; } template<> void f<>(int *p) { std::cout << \"C\" << std::endl; } int main() { int i; f(&i); }\u300c\u3055\u3066\uff0c\u3069\u306ef\u304c\u547c\u3070\u308c\u308b\u3067\u3057\u3087\u3046\u304b\uff1f\u300d\u3068\u805e\u304b\u308c\u3066\u300c\u5206\u304b\u308a\u304d\u3063\u305f\u3053\u3068\u805e\u304f\u306a\uff0eC\u304c\u547c\u3070\u308c\u308b\u306b\u6c7a\u307e\u3063\u3066\u308b\u300d\u3068\u5373\u7b54\u3067\u304d\u308b\u4eba\u307b\u2026","provider_name":"Hatena Blog","categories":["C++","GP"],"version":"1.0","blog_url":"https://blog.cryolite.net/","url":"https://blog.cryolite.net/entry/20040924/p1","width":"100%","blog_title":"Cry's Blog","image_url":null,"published":"2004-09-24 00:00:00","author_url":"https://blog.hatena.ne.jp/Cryolite/","author_name":"Cryolite","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.cryolite.net%2Fentry%2F20040924%2Fp1\" title=\"\u95a2\u6570\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3068\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316 - Cry&#39;s Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190"}