{"author_name":"osyo-manga","blog_title":"Secret Garden(Instrumental)","height":"190","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F03%2F31%2F000000\" title=\"C++14: Generic lambdas - Secret Garden(Instrumental)\" 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","blog_url":"https://secret-garden.hatenablog.com/","published":"2015-03-31 00:00:00","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/osyo-manga/","type":"rich","provider_url":"https://hatena.blog","title":"C++14: Generic lambdas","categories":["C++"],"image_url":null,"description":"C++11 \u3067\u5b9f\u88c5\u3055\u308c\u305f\u30e9\u30e0\u30c0\u5f0f\u306e\u5f15\u6570\u306b auto \u304c\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff08 \u3044\u308f\u3086\u308b\u591a\u76f8\u30e9\u30e0\u30c0\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u3002 \u3053\u308c\u306f template \u5f15\u6570\u3068\u540c\u69d8\u306b\u5f15\u6570\u578b\u3092\u62bd\u8c61\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002 // auto \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3069\u3093\u306a\u578b\u3067\u3082\u53d7\u3051\u53d6\u308b\u4e8b\u304c\u3067\u304d\u308b\u30e9\u30e0\u30c0\u5f0f\u3092\u5b9a\u7fa9\u3067\u304d\u308b auto plus = [](auto a, auto b){ return a + b; }; plus(1, 2); // => 3 plus(3.14, 3.41); // => 6.55 // \u5225\u3005\u306e\u578b\u3092\u308f\u305f\u3057\u3066\u3082\u554f\u984c\u306a\u3044 plus(std::string(\"homu\"), \"mami\"); // => 6\u2026","url":"https://secret-garden.hatenablog.com/entry/2015/03/31/000000"}