Template Struct logical_and¶
Defined in File functional.h
Struct Documentation¶
-
template<typename
T>
structlogical_and¶ logical_andis 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. Iffis an object of classlogical_and<T>andxandyare objects of classT(whereTis convertible tobool) thenf(x,y)returnstrueif and only if bothxandyaretrue.- See
- See
- Template Parameters
T: must be convertible tobool.
Public Types
-
typedef
first_argument_type¶ The type of the function object’s first argument.
-
typedef
second_argument_type¶ The type of the function object’s second argument.
-
typedef
result_type¶ The type of the function object’s result;.
Public Functions
-
__host__ __device__ bool thrust::logical_and::operator()(const T & lhs, const T & rhs) const Function call operator. The return value is
lhs && rhs.