{"url":"https://hhelibex.hatenablog.jp/entry/2021/09/12/123720","published":"2021-09-12 12:37:20","width":"100%","categories":["C++"],"blog_title":"HHeLiBeX\u306e\u65e5\u8a18 \u6b63\u9053\u7de8","height":"190","provider_url":"https://hatena.blog","description":"C++\u3067\u3088\u304f\u4f7f\u308f\u308c\u308bvector\u30af\u30e9\u30b9\u3060\u304c\u3001\u30e1\u30bd\u30c3\u30c9\u304c\u3088\u304f\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30b5\u30f3\u30d7\u30eb\u3092\u5168\u90e8\u8a70\u3081\u8fbc\u3093\u3067\u307f\u305f\u3002 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 #include <array> #include <iostream> #include <vector> std::vector<int>& init() { static std::vector<int> v = {1, 99, 4}; return v; } int dump(const std::vector<int>& v) { std::cout << \" elem = {\"; for (int x : v) { std::cout << \" \" << x;\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhhelibex.hatenablog.jp%2Fentry%2F2021%2F09%2F12%2F123720\" title=\"vector\u30af\u30e9\u30b9\u307e\u3068\u3081 - HHeLiBeX\u306e\u65e5\u8a18 \u6b63\u9053\u7de8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_name":"Hatena Blog","title":"vector\u30af\u30e9\u30b9\u307e\u3068\u3081","image_url":null,"type":"rich","blog_url":"https://hhelibex.hatenablog.jp/","author_name":"hhelibex","author_url":"https://blog.hatena.ne.jp/hhelibex/"}