thrust::greater
Defined in thrust/functional.h
-
template<typename T = void>
struct greater : public cuda::std::greater<void> 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.