tfel
Loading...
Searching...
No Matches
tfel::fsalgo::generate< N > Class Template Reference

generate assigns the result of invoking gen, a function object that takes no arguments, to each element in the range [first, first+N). More...

#include </home/runner/work/tfel/tfel/include/TFEL/FSAlgorithm/generate.hxx>

Static Public Member Functions

template<typename ForwardIterator, typename Generator>
static void exe (ForwardIterator p, Generator gen)

Detailed Description

template<unsigned int N>
class tfel::fsalgo::generate< N >

generate assigns the result of invoking gen, a function object that takes no arguments, to each element in the range [first, first+N).

Template Parameters
Nnumber of elements to which generate is applied.

This documentation is mostly inspired from: http://www.sgi.com/tech/stl/generate.html

See also
generate.cxx for some elementary tests.
Author
Thomas Helfer
Date
30/06/2006

Member Function Documentation

◆ exe()

template<unsigned int N>
template<typename ForwardIterator, typename Generator>
void tfel::fsalgo::generate< N >::exe ( ForwardIterator p,
Generator gen )
inlinestatic
Template Parameters
ForwardIteratoriterator to the elements
Generatortype of the generator
Parameters
[in]piterator to the first element
[in]gengenerator

The documentation for this class was generated from the following file: