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

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>

Static Public Member Functions

template<typename ForwardIterator, typename T>
TFEL_HOST_DEVICE static constexpr void exe (ForwardIterator p, T value)

Detailed Description

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
Nnumber of elements.

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

Member Function Documentation

◆ exe()

template<unsigned int N>
template<typename ForwardIterator, typename T>
TFEL_HOST_DEVICE static constexpr void tfel::fsalgo::iota< N >::exe ( ForwardIterator p,
T value )
inlinestaticconstexpr
Parameters
ForwardIteratoriterator to the range in concern
Ttype 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: