Adobe Systems Incorporated


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).

  • 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.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google