thrust::equal_to
Defined in thrust/functional.h
-
template<typename T = void>
struct equal_to : public cuda::std::equal_to<void> equal_to
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 classequal_to<T>
andx
andy
are objects of classT
, thenf(x,y)
returnstrue
ifx == y
andfalse
otherwise.See also
- Template Parameters
T – is a model of Equality Comparable.