thrust::logical_and
Defined in thrust/functional.h
-
template<typename T = void>
struct logical_and : public cuda::std::logical_and<void> logical_and
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_and<T>
andx
andy
are objects of classT
(whereT
is convertible tobool
) thenf(x,y)
returnstrue
if and only if bothx
andy
aretrue
.See also
- Template Parameters
T – must be convertible to
bool
.