{"author_name":"programer_hoshimi","published":"2009-09-20 22:42:27","categories":["C++"],"author_url":"https://blog.hatena.ne.jp/programer_hoshimi/","version":"1.0","height":"190","width":"100%","provider_url":"https://hatena.blog","blog_title":"Program\u30e1\u30e2","blog_url":"https://programer-hoshimi.hatenadiary.org/","description":"\u524d\u306b\u5f15\u6570\u306b\u4efb\u610f\u306e\u578b\u3092\u4ee3\u5165\u3067\u304d\u308b\u884c\u5217\u30af\u30e9\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u3068\u304d\u306b\u304a\u304d\u305f\u30a8\u30e9\u30fc\u3002 /** * @file class.h */ template<class T> public class Class{ public: Class(); ~Class(); T func(){ return t; } private: T t; }; \u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30af\u30e9\u30b9\u5185\u306e\u30e1\u30f3\u30d0\u95a2\u6570\u306e\u5185\u5bb9\uff08\u4eca\u56de\u306e\u5834\u5408\u306ffunc()\uff09\u3092\u30d8\u30c3\u30c0\u3067\u306f\u306a\u304fcpp\u30d5\u30a1\u30a4\u30eb\u306e\u65b9\u306b\u304b\u304f\u3068\u30ea\u30f3\u30af\u306e\u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u306e\u3067\u3059\u3002\u3053\u306e\u30a8\u30e9\u30fc\u306f\u4ed5\u69d8\u3089\u3057\u304f\u3001\u305f\u304f\u3055\u3093\u306e\u4eba\u304c\u8a70\u307e\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u30a8\u30e9\u30fc\uff08\uff1f\uff09\u3089\u3057\u3044\u3002 \u30b3\u30f3\u30d1\u30a4\u30e9\u304ctemplate\u3092\u89e3\u91c8\u3059\u308b\u65b9\u6cd5\u306b\u306finclu\u2026","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogramer-hoshimi.hatenadiary.org%2Fentry%2F20090920%2F1253454147\" title=\"template\u30af\u30e9\u30b9\u306e\u30a8\u30e9\u30fc - Program\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","url":"https://programer-hoshimi.hatenadiary.org/entry/20090920/1253454147","type":"rich","title":"template\u30af\u30e9\u30b9\u306e\u30a8\u30e9\u30fc"}