generate_n [C++ Reference]
Keywords: stl,algorithm,generate_n
Date: 2009-10-09T01:32:11-0700

[[generate_n]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## generate_n

Syntax:

        #include <algorithm>
        void generate_n( output_iterator result, SIZE num, Generator g );

The generate_n() function runs the Generator function object g num times, saving the result of each execution in result, (result+1), etc.

Related Topics: generate

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •