{"version":"1.0","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20200701%2Fp1\" title=\"yield\u5f0f\u3092\u4f7f\u308f\u306a\u3044\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf - 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":"2020-07-01 00:00:00","image_url":null,"author_url":"https://blog.hatena.ne.jp/yohhoy/","height":"190","blog_title":"yohhoy\u306e\u65e5\u8a18","categories":["C++","C++2a"],"provider_url":"https://hatena.blog","description":"C++2a(C++20)\u30b3\u30eb\u30fc\u30c1\u30f3\u306b\u306f\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u5b9f\u88c5\u3092\u5bb9\u6613\u306b\u3059\u308bco_yield\u5f0f\u304c\u5c0e\u5165\u3055\u308c\u308b\u304c\u3001\u52d5\u4f5c\u4ed5\u69d8\u7684\u306b\u306fco_await\u5f0f\u306e\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30b7\u30e5\u30ac\u30fc\u3068\u306a\u3063\u3066\u3044\u308b\u3002 #include <coroutine> #include <iostream> #include <utility> #define MIMIC_CO_YIELD 1 #if MIMIC_CO_YIELD // yield\u5f0f\u76f8\u5f53\u3092\u8868\u73fe\u3059\u308b\u5024\u4fdd\u6301\u30af\u30e9\u30b9 template <typename T> struct yield { T value; }; #endif template <typename T> struct gen\u2026","width":"100%","url":"https://yohhoy.hatenadiary.jp/entry/20200701/p1","author_name":"yohhoy","title":"yield\u5f0f\u3092\u4f7f\u308f\u306a\u3044\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf","blog_url":"https://yohhoy.hatenadiary.jp/","provider_name":"Hatena Blog"}