Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
C++ Ranges (Part 6 of n) - std::views::cartesian_product, views::take | Modern Cpp Series Ep. 231
Play lesson

The C++ Programming Language - C++ Ranges (Part 6 of n) - std::views::cartesian_product, views::take | Modern Cpp Series Ep. 231

4.0 (5)
38 learners

What you'll learn

This course includes

  • 68.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

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

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere