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. If f is an object of class logical_and<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 both x and 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