{"version":"1.0","blog_title":"yohhoy\u306e\u65e5\u8a18","blog_url":"https://yohhoy.hatenadiary.jp/","author_name":"yohhoy","categories":["C++","C++2b"],"height":"190","author_url":"https://blog.hatena.ne.jp/yohhoy/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20211025%2Fp1\" title=\"\u81ea\u5df1\u518d\u5e30\u3059\u308b\u30e9\u30e0\u30c0\u5f0f @ C++23 - 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>","provider_name":"Hatena Blog","description":"\u6b21\u671fC++2b(C++23)\u8a00\u8a9e\u4ed5\u69d8\u306b\u8ffd\u52a0\u3055\u308c\u308b Deducing this \u306b\u3088\u308a\u3001\u81ea\u5df1\u518d\u5e30\u3059\u308b\u30e9\u30e0\u30c0\u5f0f\u3092\u81ea\u7136\u306b\u8a18\u8ff0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u30e9\u30e0\u30c0\u5f0f\u306e\u7b2c1\u5f15\u6570\u578bthis auto\u3067\u5ba3\u8a00\u3055\u308c\u308bself\u306f explicit object parameter \u3068\u547c\u3070\u308c\u3001\u3053\u3053\u3067\u306f\u30e9\u30e0\u30c0\u5f0f\u81ea\u8eab\u306e\u30af\u30ed\u30fc\u30b8\u30e3\u578b(closure type)\u3078\u63a8\u8ad6\u3055\u308c\u308b\u3002\u30d1\u30e9\u30e1\u30fc\u30bf\u540d\u306f\u4efb\u610f\u3060\u304c\u3001Python\u3084Rust\u306a\u3069\u4ed6\u8a00\u8a9e\u306e\u6d41\u5100\u306b\u306a\u3089\u3063\u305f\u65b9\u304c\u7121\u96e3\u3002 // C++2b\uff08P0847R7\u3088\u308a\u5f15\u7528\uff09 auto fact = [](this auto self, int n) -> int { return (n <= 1) ? 1 :\u2026","published":"2021-10-25 00:00:00","url":"https://yohhoy.hatenadiary.jp/entry/20211025/p1","image_url":null,"title":"\u81ea\u5df1\u518d\u5e30\u3059\u308b\u30e9\u30e0\u30c0\u5f0f @ C++23","type":"rich","width":"100%","provider_url":"https://hatena.blog"}