{"provider_name":"Hatena Blog","description":"\u4e00\u4eba C++20 Advent Calendar 2019 2\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 \u521d\u671f\u5316\u5f0f\u3092\u3068\u3082\u306a\u3046\u7bc4\u56f2 for \u6587 \u7bc4\u56f2 for \u6587\u3092\u8a18\u8ff0\u3059\u308b\u969b\u306b\u6b21\u306e\u3088\u3046\u306b\u521d\u671f\u5316\u5f0f\u3092\u542b\u3081\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 C++20 \u4ee5\u524d { // for \u6587\u306e\u5916\u3067\u521d\u671f\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f T thing = f(); for (auto& x : thing.items()) { // Note: \u201cfor (auto& x : f().items())\u201d is WRONG mutate(&x); log(x); } } C++20 \u4ee5\u964d // for \u6587\u306e\u4e2d\u3067\u521d\u671f\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f for (T th\u2026","author_url":"https://blog.hatena.ne.jp/osyo-manga/","version":"1.0","provider_url":"https://hatena.blog","url":"https://secret-garden.hatenablog.com/entry/2019/12/02/213832","blog_title":"Secret Garden(Instrumental)","type":"rich","published":"2019-12-02 21:38:32","width":"100%","height":"190","blog_url":"https://secret-garden.hatenablog.com/","author_name":"osyo-manga","title":"\u3010\u4e00\u4eba C++20 Advent Calendar 2019\u3011\u521d\u671f\u5316\u5f0f\u3092\u3068\u3082\u306a\u3046\u7bc4\u56f2 for \u6587\u30102\u65e5\u76ee\u3011","categories":["C++","C++20"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2019%2F12%2F02%2F213832\" title=\"\u3010\u4e00\u4eba C++20 Advent Calendar 2019\u3011\u521d\u671f\u5316\u5f0f\u3092\u3068\u3082\u306a\u3046\u7bc4\u56f2 for \u6587\u30102\u65e5\u76ee\u3011 - 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>","image_url":null}