From Jason Turner
Watch on YouTube

Summary

This episode introduces C++23's new zip_view from the ranges library, the first in a mini-series covering new view types. Jason demonstrates how zip_view combines multiple ranges into a single range of tuples, with each tuple containing references to elements from the original ranges at the same position. The episode highlights key behaviors like automatic truncation to the shortest input range and shows how structured bindings provide a convenient way to work with the resulting tuples.

Resources

Tags