Functions |
template<class ForwardIterator , class T > |
void | iota (ForwardIterator first, ForwardIterator last, const T &value) |
template<class ForwardRange , class T > |
void | iota (ForwardRange &range, const T &value) |
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)
.
- 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 Guarantees:
- Linear. Exactly
last - first
assignments.
Function Documentation
void adobe::iota |
( |
ForwardIterator |
first, |
|
|
ForwardIterator |
last, |
|
|
const T & |
value |
|
) |
| |
iota implementation
Definition at line 52 of file iota.hpp.
void adobe::iota |
( |
ForwardRange & |
range, |
|
|
const T & |
value |
|
) |
| |
iota implementation
Definition at line 63 of file iota.hpp.