Template Class DiscardOutputIterator

Class Documentation

template<typename OffsetT = ptrdiff_t>
class hipcub::DiscardOutputIterator

A discard iterator.

Public Types

typedef DiscardOutputIterator self_type

My own type.

ostream operator

Not equal to.

Equal to.

Array subscript.

Distance.

Subtraction assignment.

Addition assignment.

Addition.

Indirection.

Postfix increment.

typedef OffsetT difference_type

Type to express the result of subtracting one iterator from another.

typedef void value_type

The type of the element the iterator can point to.

typedef void pointer

The type of a pointer to an element the iterator can point to.

typedef void reference

The type of a reference to an element the iterator can point to.

typedef std::random_access_iterator_tag iterator_category

The iterator category.

Public Functions

__host__ __device__ __forceinline__ inline DiscardOutputIterator(OffsetT offset = 0)

Constructor.

Parameters

offset – Base offset

__host__ __device__ __forceinline__ inline self_type operator++(int)
__host__ __device__ __forceinline__ inline self_type operator++()
__host__ __device__ __forceinline__ inline self_type &operator*()
template<typename Distance>
__host__ __device__ __forceinline__ inline self_type operator+(Distance n) const
template<typename Distance>
__host__ __device__ __forceinline__ inline self_type &operator+=(Distance n)
template<typename Distance>
__host__ __device__ __forceinline__ inline self_type operator-(Distance n) const
template<typename Distance>
__host__ __device__ __forceinline__ inline self_type &operator-=(Distance n)
__host__ __device__ __forceinline__ inline difference_type operator-(self_type other) const
template<typename Distance>
__host__ __device__ __forceinline__ inline self_type &operator[](Distance)
__host__ __device__ __forceinline__ inline pointer operator->()

Structure dereference.

template<typename T>
__host__ __device__ __forceinline__ inline void operator=(T const&)

Assignment to anything else (no-op)

__host__ __device__ __forceinline__ inline operator void*() const

Cast to void* operator.

__host__ __device__ __forceinline__ inline bool operator==(const self_type &rhs)
__host__ __device__ __forceinline__ inline bool operator!=(const self_type &rhs)

Friends

inline friend std::ostream &operator<<(std::ostream &os, const self_type &itr)