cub::DiscardOutputIterator

Defined in /home/runner/work/cccl/cccl/cub/cub/iterator/discard_output_iterator.cuh

template<typename OffsetT = ptrdiff_t>
class DiscardOutputIterator

A discard iterator.

Public Types

using self_type = DiscardOutputIterator

My own type.

using difference_type = OffsetT

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

using value_type = void

The type of the element the iterator can point to.

using pointer = void

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

using reference = void

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

using iterator_category = std::random_access_iterator_tag

The iterator category.

Public Functions

inline DiscardOutputIterator(OffsetT offset = 0)
Parameters

offset – Base offset

inline self_type operator++(int)

Postfix increment.

inline self_type operator++()

Prefix increment.

inline self_type &operator*()

Indirection.

template<typename Distance>
inline self_type operator+(Distance n) const

Addition.

template<typename Distance>
inline self_type &operator+=(Distance n)

Addition assignment.

template<typename Distance>
inline self_type operator-(Distance n) const

Subtraction.

template<typename Distance>
inline self_type &operator-=(Distance n)

Subtraction assignment.

inline difference_type operator-(self_type other) const

Distance.

template<typename Distance>
inline self_type &operator[](Distance n)

Array subscript.

inline pointer operator->()

Structure dereference.

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

Assignment to anything else (no-op)

inline operator void*() const

Cast to void* operator.

inline bool operator==(const self_type &rhs)

Equal to.

inline bool operator!=(const self_type &rhs)

Not equal to.

Friends

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

ostream operator