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. Iff
is an object of classlogical_or<T>
andx
andy
are objects of classT
(whereT
is convertible tobool
) thenf(x,y)
returnstrue
if and only if eitherx
ory
aretrue
.See also
- Template Parameters
T – must be convertible to
bool
.