NVIDIA / NVIDIA/cccl

Use testing iterator wrappers to ensure that algorithms support their stated requirements

Open
#679 2 comments 0 reactions 0 assignees View on GitHub
thrust
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

Since InputIterators can't be dereferenced multiple times we shouldn't implement algorithms like copy_if(first, last, output, pred) with copy_if(first, last, first, output, pred).

In general the unit tests should check InputIterator semantic correctness.

Forwarded from http://code.google.com/p/thrust/issues/detail?id=419

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.