thrust::greater
Defined in thrust/functional.h
-
template<typename T = void>
struct greater 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 also
- Template Parameters
T – is a model of LessThan Comparable.
Public Types
-
typedef bool result_type
The type of the function object’s result;.