{"url":"https://toburau.hatenablog.jp/entry/20090121/1232547834","provider_url":"https://hatena.blog","version":"1.0","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","image_url":null,"title":"\u6c4e\u7528\u30af\u30e9\u30b9\u305d\u306e4","author_url":"https://blog.hatena.ne.jp/toburau/","height":"190","blog_url":"https://toburau.hatenablog.jp/","categories":["C++"],"width":"100%","description":"\u6c4e\u7528\u30af\u30e9\u30b9\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u6307\u5b9a\u3067\u306f\u6c4e\u7528\u578b\u3067\u306f\u306a\u3044\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002 \u305f\u3060\u3057\u6307\u5b9a\u3067\u304d\u308b\u306e\u306f\u6574\u6570\u3001\u30dd\u30a4\u30f3\u30bf\u3001\u53c2\u7167\u306e\u3044\u305a\u308c\u304b\u3002 #include <iostream> using namespace std; template <class T, int num> 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<int, 10> obj; cout << \u2026","author_name":"toburau","type":"rich","provider_name":"Hatena Blog","published":"2009-01-21 23:23:54","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20090121%2F1232547834\" title=\"\u6c4e\u7528\u30af\u30e9\u30b9\u305d\u306e4 - \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>"}