Missing (and future?) C++ range concepts - Jonathan Müller - Meeting C++ 2025 @MeetingCPP
Missing (and future?) C++ range concepts - Jonathan Müller - Meeting C++ 2025  @MeetingCPP
Uploaded February 2026 | Updated November 2026, 55 minutes ago
Missing and future? C++ range concepts - Jonathan Müller - Meeting C++ 2025
Slides: slides.meetingcpp.com

Iterators and ranges have been essential parts of the C++ standard library since its inception. With C++20, they were brought to the next level in the form of `std::ranges`: We now have formalized requirements on the algorithms, lazy views to enable pipelines, and much more powerful iterators. Since then, more and more views and algorithms have been added in C++23.

However, the fundamental concepts have mostly been left unchanged, even though there are still some rough edges. This talk explores new kinds of ranges that are not possible with the existing C++ range concepts. We will first look at compile-time-sized, approximately sized, and infinite ranges, then at noncontiguous ranges with contiguous chunks. Finally, we will explore an optimization to make many algorithms much more efficient by using a pushed-based `for_each_while(rng, sink)` customization point instead of pull-based iterators.

Optimization gives us a glimpse into a world where ranges are no longer constrained by iterators, enabling heterogeneous ranges of multiple types. Heterogeneous ranges allow us to use types like `std::tuple` in range algorithms, do type-based metaprogramming using regular views, and efficiently handle ranges over polymorphic types. This truly takes the power of ranges to the next level!
Missing (and future?) C++ range concepts - Jonathan Müller - Meeting C++ 2025Vector to Array - Robin Savonen Söderholm - Meeting C++ 2025Meeting C++ 2025 is 8 weeks away!Iterate and Improve to give better talks - Robert Schimkowitsch- Speaking about C++ 2025C++ in Embedded Systems - Interview with Author Amar MahmutbegovićGuy Davidson on Reflection - the big C++26 feature(Dont) use coroutines for this - Ivan Čukić - Meeting C++ 2025Modern CMake for C++ - interview with the authorMastering C++ Game Animation Programming - Interview with Author Michael Dunsky (GameDev)The Code is Documentation Enough - Tina Ulbrich - Meeting C++ 2025Interview with Alex Dathskovsky - Unlocking the Value of C++20 Features - Meeting C++ 2025Asynchronous Programming with C++ - interview with the authors
Meeting Cpp |

Missing (and future?) C++ range concepts - Jonathan Müller - Meeting C++ 2025

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER