Description
generate_n() assigns generated values to elements in a sequence. Values are generated by successive calls to a specified function.
Declaration
template <class Out, class Size, class Gen> void generate_n(Out, Size, Gen);
Concept
The sample program sets up a vector of strings, and then generates a sequence #a, #b, ... to fill it.
Special Notes:
generate_n() assigns rather than initializes, and is not suitable for raw memory.
Supported
Supported
Supported