fill, iota and generate - Algorithms from the C++ standard library

preview_player
Показать описание
In this Bits of Q tutorial we will be talking about the generator algorithms. Specifically: std::fill, std::iota and std::generate. These functions are used to generate data and and are great for initializing your containers or otherwise preparing their content before a calculation.

Related material:

-- TIMESTAMPS --
00:00 - Introduction
00:15 - std::fill & std::fill_n
01:02 - std::iota
02:15 - std::generate & generate_n
02:42 - example: generating random numbers

If you have any questions or feedback, just leave a comment below.

See you next time!
Рекомендации по теме
welcome to shbcf.ru