{"author_url":"https://blog.hatena.ne.jp/yohhoy/","author_name":"yohhoy","provider_url":"https://hatena.blog","width":"100%","categories":["C++","C++2b"],"type":"rich","image_url":null,"published":"2022-02-15 00:00:00","height":"190","url":"https://yohhoy.hatenadiary.jp/entry/20220215/p1","provider_name":"Hatena Blog","title":"std::views::common\u30ec\u30f3\u30b8\u30a2\u30c0\u30d7\u30bf\u306e\u5236\u7d04","version":"1.0","blog_title":"yohhoy\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20220215%2Fp1\" title=\"std::views::common\u30ec\u30f3\u30b8\u30a2\u30c0\u30d7\u30bf\u306e\u5236\u7d04 - 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>","blog_url":"https://yohhoy.hatenadiary.jp/","description":"C++20 Range\u304b\u3089C++17\u4e92\u63db\u30a4\u30c6\u30ec\u30fc\u30bf\u30da\u30a2\u3078\u306e\u5909\u63db\u306b\u306fstd::views::common\u30ec\u30f3\u30b8\u30a2\u30c0\u30d7\u30bf(range adaptor)\u3092\u5229\u7528\u3059\u308b\u3002\u305f\u3060\u3057std::ranges::basic_istream_view\u306a\u3069\u30e0\u30fc\u30d6\u306e\u307f\uff0f\u30b3\u30d4\u30fc\u4e0d\u53ef\u306a\u30a4\u30c6\u30ec\u30fc\u30bf\u304b\u3089\u306a\u308b\u4e00\u90e8Range\u306f\u5909\u63db\u3067\u304d\u306a\u3044\u3002*1 #include <sstream> #include <ranges> #include <vector> auto ints = std::istringstream{\"0 1 2 3 4\"}; auto cv = std::ranges::istream_view<int>(ints)\u2026"}