{"author_name":"Isoparametric","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190","version":"1.0","type":"rich","width":"100%","url":"https://isoparametric.hatenablog.com/entry/20091105/1257380532","categories":["c/c++"],"title":"STL\u306evector\u306b\u6587\u53e5\u3092\u8a00\u308f\u305a\u306b\u81ea\u5206\u3067\u9811\u5f35\u308b\u65b9\u6cd5","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fisoparametric.hatenablog.com%2Fentry%2F20091105%2F1257380532\" title=\"STL\u306evector\u306b\u6587\u53e5\u3092\u8a00\u308f\u305a\u306b\u81ea\u5206\u3067\u9811\u5f35\u308b\u65b9\u6cd5 - \u795e\u69d8\u306a\u3093\u3066\u4fe1\u3058\u306a\u3044\u50d5\u3089\u306e\u305f\u3081\u306b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/Isoparametric/","blog_url":"https://isoparametric.hatenablog.com/","blog_title":"\u795e\u69d8\u306a\u3093\u3066\u4fe1\u3058\u306a\u3044\u50d5\u3089\u306e\u305f\u3081\u306b","published":"2009-11-05 09:22:12","image_url":null,"description":"\uff11\uff0e\u81ea\u5206\u3067vector\u3092\u66f8\u304f \u6b7b\u4ea1\u30d5\u30e9\u30b0\u3002\uff0f(^o^)\uff3c \u30a4\u30c6\u30ec\u30fc\u30bf\u3082\u4f7f\u3048\u306a\u3044\u30ab\u30b9\u30b3\u30f3\u30c6\u30ca\u304c\u3067\u304d\u308b\u53ef\u80fd\u602799.9%\u3002 \u4eca\u3059\u3050\u6b7b\u3093\u3060\u65b9\u304c\u826f\u3044\u3002 \uff12\uff0eSTL\u306evector\u3092protected\u7d99\u627f\u3057\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b \u4f8b\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u3002 C++ code - 40 lines - codepad \u3053\u308c\u306f\u6700\u521d\u304b\u3089reserve\u3057\u3066\u304a\u304fSTL\u306evector\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u5236\u5fa1\u53ef\u3002 \u3053\u308c\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u4f8b\u3048\u3070push_back\u306e\u969b\u306bcapacity\u304c\u5909\u5316\u3057\u305f\u304b\u3001\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u4e8b\u3092\u76e3\u8996\u3067\u304d\u308b\u3057\u3001 \uff08\u305f\u3060\u3057\u3001insert\u306a\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3082capacity\u306f\u5909\u5316\u3059\u308b\uff09 \u4f7f\u308f\u305b\u305f\u304f\u306a\u3044\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u516c\u958b\u3057\u306a\u3044\u2026"}