Template Struct greater¶
Defined in File functional.h
Struct Documentation¶
-
template<typename
T
>
structgreater
¶ greater
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 classgreater<T>
andx
andy
are objects of classT
, thenf(x,y)
returnstrue
ifx > y
andfalse
otherwise.- See
- See
- Template Parameters
T
: is a model of LessThan Comparable.
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::greater::operator()(const T & lhs, const T & rhs) const
Function call operator. The return value is
lhs > rhs
.