{"description":"vector v, w; for(int i=0; i v.push_back(i); } w.reserve(320000); copy(v.begin(), v.end(), w.begin()); \u3060\u3068\u306a\u3093\u304b\u30bb\u30b0\u30d5\u30a9\u304c\u51fa\u305f\u3002 w.assign(v.begin(), v.end() ); \u3067\u3001\u4f55\u3068\u304b\u306a\u3063\u305f\u3063\u307d\u3044\u3051\u3069\u4f55\u3060\u3053\u308c\u3002\u3069\u3046\u306a\u3063\u3066\u3093\u306e\u3002","categories":[],"image_url":null,"version":"1.0","provider_url":"https://hatena.blog","author_name":"kuenishi","provider_name":"Hatena Blog","published":"2006-10-15 20:55:08","url":"https://kuenishi.hatenadiary.jp/entry/20061015/cppreference","blog_title":"kuenishi's blog","title":" C++ vector\u306e\u30b3\u30d4\u30fc","type":"rich","author_url":"https://blog.hatena.ne.jp/kuenishi/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkuenishi.hatenadiary.jp%2Fentry%2F20061015%2Fcppreference\" title=\" C++ vector\u306e\u30b3\u30d4\u30fc - kuenishi&#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>","blog_url":"https://kuenishi.hatenadiary.jp/","height":"190"}