Template Struct logical_or¶
Defined in File functional.h
Struct Documentation¶
-
template<typename
T
>
structlogical_or
¶ 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
- 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_or::operator()(const T & lhs, const T & rhs) const
Function call operator. The return value is
lhs || rhs
.