{"version":"1.0","published":"2017-09-08 00:00:00","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20170908%2Fp1\" title=\"\u30b7\u30fc\u30b1\u30f3\u30b9\u30b3\u30f3\u30c6\u30ca\u00d7\u30a4\u30c6\u30ec\u30fc\u30bf\u30fb\u30da\u30a2\u00d7\u30ea\u30b9\u30c8\u521d\u671f\u5316\u00d7\u63a8\u8ad6\u30ac\u30a4\u30c9\uff1d\uff1f - yohhoy\u306e\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>","width":"100%","height":"190","author_name":"yohhoy","blog_title":"yohhoy\u306e\u65e5\u8a18","description":"C++1z(C++17)\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u30b3\u30f3\u30c6\u30ca(std::vector\u306a\u3069)\u306b\u306f\u30af\u30e9\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5f15\u6570\u63a8\u8ad6 \u63a8\u8ad6\u30ac\u30a4\u30c9(deduction guide) \u304c\u8ffd\u52a0\u3055\u308c\u305f\u304c\u3001\u30a4\u30c6\u30ec\u30fc\u30bf\u30fb\u30da\u30a2\u306b\u3088\u308b\u30ea\u30b9\u30c8\u521d\u671f\u5316(list initialization)\u3067\u306f\u610f\u56f3\u3057\u306a\u3044\u578b\u63a8\u8ad6\u304c\u884c\u308f\u308c\u308b\u3002\u304b\u306a\u308a\u7f60\u3063\u307d\u3044\u6319\u52d5\u3002 // C++1z(C++17) #include <vector> std::vector v0{ 1, 2, 3, 4 }; // vector<int> \u306b\u63a8\u8ad6\u3055\u308c\u308b // \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bfvector(intializer_list<int>)\u3092\u9078\u629e // v0 = 4\u8981\u7d20[1, 2\u2026","provider_url":"https://hatena.blog","blog_url":"https://yohhoy.hatenadiary.jp/","provider_name":"Hatena Blog","image_url":null,"title":"\u30b7\u30fc\u30b1\u30f3\u30b9\u30b3\u30f3\u30c6\u30ca\u00d7\u30a4\u30c6\u30ec\u30fc\u30bf\u30fb\u30da\u30a2\u00d7\u30ea\u30b9\u30c8\u521d\u671f\u5316\u00d7\u63a8\u8ad6\u30ac\u30a4\u30c9\uff1d\uff1f","author_url":"https://blog.hatena.ne.jp/yohhoy/","categories":["C++","C++1z"],"url":"https://yohhoy.hatenadiary.jp/entry/20170908/p1"}