{"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/toburau/","height":"190","provider_url":"https://hatena.blog","image_url":null,"title":"\u6c4e\u7528\u30af\u30e9\u30b9\u305d\u306e5","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20090124%2F1232815181\" title=\"\u6c4e\u7528\u30af\u30e9\u30b9\u305d\u306e5 - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++"],"author_name":"toburau","type":"rich","description":"\u6c4e\u7528\u30af\u30e9\u30b9\u3067\u6307\u5b9a\u3059\u308b\u6c4e\u7528\u578b\u3084\u975e\u6c4e\u7528\u578b\u306e\u5f15\u6570\u3067\u3082\u30c7\u30d5\u30a9\u30eb\u30c8\u5f15\u6570\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002 #include <iostream> using namespace std; template <class T=int, int num=10> class Test { T mValue[num]; public: Test() { for(int i=0; i<num; i++) mValue[i] = i; } T get(int i) { return mValue[i]; } }; void main() { Test<> obj; cout << obj.get(3) << endl; }","url":"https://toburau.hatenablog.jp/entry/20090124/1232815181","width":"100%","blog_url":"https://toburau.hatenablog.jp/","published":"2009-01-24 01:39:41","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18"}