iota assigns sequentially increasing values to a range. That is, it assigns value to *first, value + 1 to *(first + 1) and so on.
More...
#include </home/runner/work/tfel/tfel/include/TFEL/FSAlgorithm/iota.hxx>
|
| template<typename ForwardIterator, typename T> |
| TFEL_HOST_DEVICE static constexpr void | exe (ForwardIterator p, T value) |
template<unsigned int N>
class tfel::fsalgo::iota< N >
iota assigns sequentially increasing values to a range. That is, it assigns value to *first, value + 1 to *(first + 1) and so on.
- Parameters
-
This documentation is mostly inspired from: http://www.sgi.com/tech/stl/iota.html
- See also
- iota.cxx for some elementary tests.
- Author
- Thomas Helfer
- Date
- 30/06/2006
◆ exe()
template<unsigned int N>
template<typename ForwardIterator, typename T>
- Parameters
-
| ForwardIterator | iterator to the range in concern |
| T | type of the value assigned to the sequence |
- Returns
- void
- Precondition
- ForwardIterator is a model of Forward Iterator.
- ForwardIterator is mutable.
- T is Assignable.
- If x is an object of type T, then x++ is defined.
- T is convertible to ForwardIterator's value type.
The documentation for this class was generated from the following file: