Skip to content

Commit

Permalink
fixed none_of documentation
Browse files Browse the repository at this point in the history
resolves issue NVIDIA#123
  • Loading branch information
wnbell committed Apr 15, 2010
1 parent e653ef4 commit 2ae0e37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thrust/logical.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ bool any_of(InputIterator first, InputIterator last, Predicate pred);
* ...
* bool A[3] = {true, true, false};
*
* thrust::any_of(A, A + 2, thrust::identity<bool>()); // returns false
* thrust::any_of(A, A + 3, thrust::identity<bool>()); // returns false
* thrust::none_of(A, A + 2, thrust::identity<bool>()); // returns false
* thrust::none_of(A, A + 3, thrust::identity<bool>()); // returns false
*
* thrust::any_of(A + 2, A + 3, thrust::identity<bool>()); // returns true
* thrust::none_of(A + 2, A + 3, thrust::identity<bool>()); // returns true
*
* // empty range
* thrust::any_of(A, A, thrust::identity<bool>()); // returns true
* thrust::none_of(A, A, thrust::identity<bool>()); // returns true
* \endcode
*
* \see all_of
Expand Down

0 comments on commit 2ae0e37

Please sign in to comment.