{"blog_url":"https://dot-h2o2.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/dot_h2o2/","provider_name":"Hatena Blog","type":"rich","image_url":null,"author_name":"dot_h2o2","url":"https://dot-h2o2.hatenadiary.org/entry/20161110","blog_title":".h2o\u306e\u304a\u6c17\u697d\u65e5\u8a18","title":"C++ template\u3067std::vector \u3082\u3069\u304d\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3002","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdot-h2o2.hatenadiary.org%2Fentry%2F20161110\" title=\"C++ template\u3067std::vector \u3082\u3069\u304d\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3002 - .h2o\u306e\u304a\u6c17\u697d\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++"],"width":"100%","version":"1.0","description":"#include <iostream> template <class T> class List { public: List(); List(int size); ~List(); T& operator[](int index); private: T* data; }; template <class T> List<T>::List(int size) { data = new T[size]; return; } template <class T> List<T>::~List() { delete[] data; return; } template <class T> T& \u2026","published":"2016-11-10 00:00:00","height":"190","provider_url":"https://hatena.blog"}