Template Struct less¶
Defined in File functional.h
Struct Documentation¶
-
template<typename
T>
structless¶ lessis 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 classless<T>andxandyare objects of classT, thenf(x,y)returnstrueifx < yandfalseotherwise.- 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::less::operator()(const T & lhs, const T & rhs) const Function call operator. The return value is
lhs < rhs.