Skip to content

Unify input and output iterators #5688

@jrhemstad

Description

@jrhemstad

Currently, for iterators that can be used both as inputs and output of algorithms, we provide distinct types in cccl.parallel:

  • ReverseInputIterator
  • ReverseOutputIterator
  • TransformIterator
  • TransformOutputIterator
  • ZipIterator ( currently we support input only, but could be an output iterator as well)

It would be good to unify these so that a ReverseIterator/TransformIterator/ZipIterator could be used either as an input or an output.

For iterators like CountingIterator where maybe it doesn't make sense to use as an output iterator, an algorithm should raise if provided as an output iterator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions