Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

Functions

template<class ForwardIterator, class T>
iota (ForwardIterator first, ForwardIterator last, const T &value)
 iota implementation
template<class ForwardRange, class T>
iota (ForwardRange &range, const T &value)
 iota implementation

Detailed Description

iota assigns sequentially increasing values to a range. That is, it assigns value to *first, value + 1 to *(first + 1) and so on. In general, each iterator i in the range [first, last) is assigned value + (i - first).

Returns
the next value is returned.
Requirements
  • ForwardIterator is mutable.
  • T is Assignable.
  • If x is an object of type T, then ++x is defined.
  • T is convertible to ForwardIterator::value_type
  • [first, last) is a valid range.
Complexity Guarantee(s)
  • Linear. Exactly last - first assignments.

Function Documentation

◆ iota() [1/2]

template<class ForwardIterator, class T>
T iota ( ForwardIterator first,
ForwardIterator last,
const T & value )

Definition at line 53 of file iota.hpp.

◆ iota() [2/2]

template<class ForwardRange, class T>
T iota ( ForwardRange & range,
const T & value )

Definition at line 69 of file iota.hpp.