Summary
Full Transcript
►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join ►Discussion Forum: https://forum.mshah.io/ ►Lesson Description: In this lesson we continue our journey into ranges. I will show you how to use the std::views::cartesian_product to generate a set of tuples from several other ranges. I'll motivate this for an example of in a real-time strategy game you may want to randomly generate set of characters from all possible combinations of statistical attributes. We'll also learn about std::views::take and std::ranges::shuffle as well to make this example a bit more interesting. Overall this video hopefully highlights for you how handy some of the algorithmic and range-based building blocks can be when solving a real world problems. You'll of course have to consider the performance, and what values you are otherwise caching when solving these types of problems otherwise. As always, feel free to bring up any questions and discuss what you've learned! ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Please like and subscribe to help the channel! ►Join our free community: https://courses.mshah.io/communities/Q29tbXVuaXR5LTI3MzAz
