Template Struct equal_to¶
Defined in File functional.h
Struct Documentation¶
-
template<typename
T>
structequal_to¶ equal_tois 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. Iffis an object of classequal_to<T>andxandyare objects of classT, thenf(x,y)returnstrueifx == yandfalseotherwise.- See
- See
- Template Parameters
T: is a model of Equality 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::equal_to::operator()(const T & lhs, const T & rhs) const Function call operator. The return value is
lhs == rhs.