C++: Difference between revisions

72 bytes added ,  9 March 2020
Line 295: Line 295:


====std::generate====
====std::generate====
[https://en.cppreference.com/w/cpp/algorithm/generate cppreference]<br>
Allows you to fill a container using a function call<br>
Allows you to fill a container using a function call<br>
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">