{"type":"rich","version":"1.0","author_name":"yohhoy","width":"100%","title":"initializer_list\u3068Move-only\u578b","image_url":null,"blog_title":"yohhoy\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","blog_url":"https://yohhoy.hatenadiary.jp/","url":"https://yohhoy.hatenadiary.jp/entry/20161114/p1","categories":["C++"],"description":"C++11\u3067\u5c0e\u5165\u3055\u308c\u305f\u30ea\u30b9\u30c8\u521d\u671f\u5316(list initialization)\u69cb\u6587\u3067\u7528\u3044\u3089\u308c\u308bstd::initializer_list<E>\u3067\u306f\u3001\u8981\u7d20\u578bE\u306b\u30b3\u30d4\u30fc\u64cd\u4f5c\u3092\u8981\u6c42\u3059\u308b\u305f\u3081*1\u3001std::unique_ptr\u306a\u3069\u306e\u30b3\u30d4\u30fc\u4e0d\u53ef\uff0f\u30e0\u30fc\u30d6\u306e\u307f\u53ef\u80fd\u306a(Move-only)\u578b\u3092\u6271\u3048\u306a\u3044\u3002\u3053\u306e\u5236\u9650\u306b\u3088\u308a Move-only \u578b\u306e\u6a19\u6e96\u30b3\u30f3\u30c6\u30ca\u521d\u671f\u5316\u3067\u306f\u30ea\u30b9\u30c8\u521d\u671f\u5316\u3092\u5229\u7528\u3067\u304d\u305a\u3001\u30e1\u30f3\u30d0\u95a2\u6570push_back\u3084emplace_back\u30671\u8981\u7d20\u3065\u3064\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u672c\u8a18\u4e8b\u306e\u5185\u5bb9\u306fStack Overflow\u3067\u898b\u3064\u3051\u305f\u8cea\u554f\u3068\u56de\u7b54\u306b\u57fa\u3065\u304f\u3002 std::vector<std::unique_ptr<int>>\u2026","author_url":"https://blog.hatena.ne.jp/yohhoy/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20161114%2Fp1\" title=\"initializer_list\u3068Move-only\u578b - 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>","published":"2016-11-14 00:00:00","height":"190"}