{"image_url":null,"provider_name":"Hatena Blog","blog_title":"yohhoy\u306e\u65e5\u8a18","blog_url":"https://yohhoy.hatenadiary.jp/","title":"\u6c4e\u7528\u30e9\u30e0\u30c0\u30ad\u30e3\u30d7\u30c1\u30e3\u3068unique_ptr\u578b\u3068move\u95a2\u6570\u306e\u5c0f\u3055\u306a\u7f60","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20150107%2Fp1\" title=\"\u6c4e\u7528\u30e9\u30e0\u30c0\u30ad\u30e3\u30d7\u30c1\u30e3\u3068unique_ptr\u578b\u3068move\u95a2\u6570\u306e\u5c0f\u3055\u306a\u7f60 - 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>","version":"1.0","width":"100%","url":"https://yohhoy.hatenadiary.jp/entry/20150107/p1","provider_url":"https://hatena.blog","published":"2015-01-07 00:00:00","description":"C++14\u3067\u5c0e\u5165\u3055\u308c\u305f\u6c4e\u7528\u30e9\u30e0\u30c0\u30ad\u30e3\u30d7\u30c1\u30e3(generalized lambda capture)\u3068\u3001\u30b3\u30d4\u30fc\u4e0d\u53ef\u304b\u3064\u30e0\u30fc\u30d6\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6271\u3044\u306b\u3064\u3044\u3066\u30e1\u30e2\u3002\u6c4e\u7528\u30e9\u30e0\u30c0\u30ad\u30e3\u30d7\u30c1\u30e3\u69cb\u6587\u3067\u30e0\u30fc\u30d6\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305fstd::unique_ptr\u578b\u306e\u5909\u6570up1\u3092\u3001\u305d\u306e\u30e9\u30e0\u30c0\u5f0f\u4e2d\u3067\u3055\u3089\u306b\u5909\u6570up2\u3078\u30e0\u30fc\u30d6\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3092\u5f15\u304d\u8d77\u3053\u3059\u3002 // C++14\u4ee5\u964d #include <memory> auto up0 = std::make_unique<int>(42); auto lm = [up1 = std::move(up0)] { auto up2 = std::move(up1); //\u2026","categories":["C++"],"author_name":"yohhoy","type":"rich","author_url":"https://blog.hatena.ne.jp/yohhoy/"}