fenbf / cppstories-discussions

4 stars 1 forks source link

2023/view-zip/ #115

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Combining Collections with Zip in C++23 for Efficient Data Processing - C++ Stories

In this article, we’ll look at a super handy ranges view in C++23 - views::zip. In short, it allows you to combine two or more ranges and iterate through them simultaneously. Let’s see how to use it. Basic   If you have two (or more) separate containers and you want to iterate through them “in parallel,” you can write the following code:

https://www.cppstories.com/2023/view-zip/

2kaud commented 1 year ago

VC2022 now has ranges::to - but still not proper support for ranges::zip/zip_transform. Ahhh...

My favourite feature of ranges is std::views:split

ram535 commented 1 year ago

what is the equivalent of std::views::zip_transform in range v3 library?