Simulating Generators in C++17 and Discovering the Real Thing in C++23
- alex d
- Apr 27
- 1 min read
Hi everyone,It’s been a long, long time since I last had a chance to create a new episode — but I’m excited to say it’s finally here! 🎉
In this episode, we’re taking a fun and educational journey into the world of C++ generators — well, sort of! 😉
What You'll Learn
Here’s what we’ll explore:
🔹 How to simulate a simple generator in C++17 — crafting something generator-like without true language support.
🔹 How C++23 introduces real generator support — and how much easier and more powerful it becomes.
🔹 The full comparison — seeing side-by-side how we used to do it vs. how we can do it now.
Why Talk About Generators?
Generators give us a way to produce values lazily, one at a time, without generating a whole collection upfront.They can make your code cleaner, faster, and more intuitive — especially when working with large datasets or infinite sequences.
If you’ve ever used Python’s yield, you already know how convenient this pattern can Now be used with C++23, we can finally bring that magic into modern C++! 🚀
Watch the Full Episode
If you’re excited about modern C++, love seeing real-world coding patterns, and enjoy learning how features evolve from workarounds to first-class citizens — this episode is for you!
👉 [Watch the video here] (link)And if you enjoyed it, don’t forget to like, comment, and subscribe — it really helps the channel grow! 🎥💬
Follow me here for more deep dives into C++20, C++23, and everything new in software