| rocPRIM
    | 
A random-access input (read-only) iterator over a sequence of consecutive integer values. More...
#include <counting_iterator.hpp>
| Public Types | |
| using | value_type = typename std::remove_const< Incrementable >::type | 
| The type of the value that can be obtained by dereferencing the iterator. | |
| using | reference = value_type | 
| A reference type of the type iterated over ( value_type).  More... | |
| using | pointer = const value_type * | 
| A pointer type of the type iterated over ( value_type).  More... | |
| using | difference_type = Difference | 
| A type used for identify distance between iterators. | |
| using | iterator_category = std::random_access_iterator_tag | 
| The category of the iterator. | |
| using | self_type = counting_iterator | 
| Public Member Functions | |
| ROCPRIM_HOST_DEVICE | ~counting_iterator ()=default | 
| Creates counting_iterator with its initial value initialized to its default value (usually 0).  More... | |
| ROCPRIM_HOST_DEVICE | counting_iterator (const value_type value) | 
| Creates counting_iterator and sets its initial value to value_.  More... | |
| ROCPRIM_HOST_DEVICE counting_iterator & | operator++ () | 
| ROCPRIM_HOST_DEVICE counting_iterator | operator++ (int) | 
| ROCPRIM_HOST_DEVICE counting_iterator & | operator-- () | 
| ROCPRIM_HOST_DEVICE counting_iterator | operator-- (int) | 
| ROCPRIM_HOST_DEVICE value_type | operator* () const | 
| ROCPRIM_HOST_DEVICE pointer | operator-> () const | 
| ROCPRIM_HOST_DEVICE counting_iterator | operator+ (difference_type distance) const | 
| ROCPRIM_HOST_DEVICE counting_iterator & | operator+= (difference_type distance) | 
| ROCPRIM_HOST_DEVICE counting_iterator | operator- (difference_type distance) const | 
| ROCPRIM_HOST_DEVICE counting_iterator & | operator-= (difference_type distance) | 
| ROCPRIM_HOST_DEVICE difference_type | operator- (counting_iterator other) const | 
| ROCPRIM_HOST_DEVICE value_type | operator[] (difference_type distance) const | 
| ROCPRIM_HOST_DEVICE bool | operator== (counting_iterator other) const | 
| ROCPRIM_HOST_DEVICE bool | operator!= (counting_iterator other) const | 
| ROCPRIM_HOST_DEVICE bool | operator< (counting_iterator other) const | 
| ROCPRIM_HOST_DEVICE bool | operator<= (counting_iterator other) const | 
| ROCPRIM_HOST_DEVICE bool | operator> (counting_iterator other) const | 
| ROCPRIM_HOST_DEVICE bool | operator>= (counting_iterator other) const | 
| Friends | |
| std::ostream & | operator<< (std::ostream &os, const counting_iterator &iter) | 
A random-access input (read-only) iterator over a sequence of consecutive integer values.
| Incrementable | - type of value that can be obtained by dereferencing the iterator. | 
| Difference | - a type used for identify distance between iterators | 
| using counting_iterator< Incrementable, Difference >::pointer = const value_type* | 
A pointer type of the type iterated over (value_type). 
It's const since counting_iterator is a read-only iterator. 
| using counting_iterator< Incrementable, Difference >::reference = value_type | 
A reference type of the type iterated over (value_type). 
It's same as value_type since constant_iterator is a read-only iterator and does not have underlying buffer. 
| 
 | inlinedefault | 
Creates counting_iterator with its initial value initialized to its default value (usually 0).
| 
 | inlineexplicit | 
Creates counting_iterator and sets its initial value to value_. 
| value | initial value | 
 1.8.13
 1.8.13