{"blog_title":"yohhoy\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","title":"\u69cb\u9020\u5316\u675f\u7e1b in \u6761\u4ef6\u5f0f @ C++26","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC++\u306e\u6b21\u671f\u6a19\u6e96C++2c(C++26)\u304b\u3089\u3001if/while/for/switch\u69cb\u6587\u306e\u6761\u4ef6\u5f0f(condition)\u90e8\u306b\u69cb\u9020\u5316\u675f\u7e1b(structured binding)\u3092\u8a18\u8ff0\u3067\u304d\u308b\u3002 // C++2c if (auto [a, b] = func()) { // \u95a2\u6570\u623b\u308a\u5024\u304b\u3089bool\u578b\u3078\u306e\u5909\u63db\u7d50\u679c\u304ctrue\u3068\u306a\u308b\u3068\u304d\u306b\u9650\u308a // \u623b\u308a\u5024\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u5909\u6570a, b\u3078\u306e\u5206\u5272\u4ee3\u5165\u304c\u884c\u308f\u308c\u308b } // \u4e0b\u8a18\u30b3\u30fc\u30c9\u52d5\u4f5c\u3068\u7b49\u4fa1 auto r = func(); if (r) { auto [a, b] = r; // ... } \u307e\u305fC++2c\u63a1\u629e\u6e08\u307f\u63d0\u6848\u6587\u66f8P2497R0\u306b\u3088\u308a\u2026","version":"1.0","image_url":null,"url":"https://yohhoy.hatenadiary.jp/entry/20240718/p1","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20240718%2Fp1\" title=\"\u69cb\u9020\u5316\u675f\u7e1b in \u6761\u4ef6\u5f0f @ C++26 - 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>","author_url":"https://blog.hatena.ne.jp/yohhoy/","author_name":"yohhoy","categories":["C++","C++2c","Clang"],"published":"2024-07-18 00:00:00","height":"190","type":"rich","provider_name":"Hatena Blog","blog_url":"https://yohhoy.hatenadiary.jp/"}