thrust::logical_or

Defined in thrust/functional.h

template<typename T = void>
struct logical_or : public cuda::std::logical_or<void>

logical_or is a function object. Specifically, it is an Adaptable Binary Predicate, which means it is a function object that tests the truth or falsehood of some condition. If f is an object of class logical_or<T> and x and y are objects of class T (where T is convertible to bool) then f(x,y) returns true if and only if either x or y are true.

See also

binary_function

Template Parameters

T – must be convertible to bool.

Public Types

using first_argument_type = T
using second_argument_type = T
using result_type = T