Class template counting_iterator
boost::compute::counting_iterator — The counting_iterator class implements a counting iterator.
Synopsis
Description
Итератор подсчета возвращает внутреннее значение (инициализируется с<init>), которое увеличивается каждый раз, когда итератор увеличивается.
Например, это может быть использовано для реализации алгоритма iota() в терминах алгоритма copy() путем копирования из ряда итераторов подсчета:
См. также:
make_counting_iterator()
counting_iterator
public
construct/copy/destruct
counting_iterator public member functions
- <
size_tget_index()const;
> - <
template<typenameExpr>unspecifiedoperator[](constExpr&expr)const;
>
counting_iterator private member functions
- <
referencedereference()const;
> - <
boolequal(constcounting_iterator<T>&other)const;
> - <
voidincrement();
> - <
voiddecrement();
> - <
voidadvance(difference_typen);
> - <
difference_typedistance_to(constcounting_iterator<T>&other)const;
>