void generate (ForwardIterator first, ForwardIterator last, Generator gen) | Function |
OutputIterator generate_n (OutputIterator first, Size n, Generator gen) | Function |
templatevoid generate(ForwardIterator first, ForwardIterator last, Generator gen); template OutputIterator generate_n(OutputIterator first, Size n, Generator gen);
generate invokes the function object gen and assigns the return value of gen through all the iterators in the range [first, last) or [first, first + n). gen takes no arguments. generate_n returns first + n. Exactly last - first (or n) invocations of gen and assignments are done.
|
|