Filling out a vector using generate function

Let us suppose that you want to fill out a vector with 10000 random elements, phew. Hmm so what you would do is to write a for loop, iterate through, and fill out the elements. Well I can do it with just one line of code. 🙂 Look [sourcecode language=”cpp”]// Typedefs typedef int VtElem; typedef […]
Continue reading…