thrust::less_equal

Defined in thrust/functional.h

template<typename T = void>
struct less_equal : public cuda::std::less_equal<void>

less_equal 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. If f is an object of class less_equal<T> and x and y are objects of class T, then f(x,y) returns true if x <= y and false otherwise.

See also

binary_function

Template Parameters

T – is a model of LessThan Comparable.

Public Types

using first_argument_type = T
using second_argument_type = T
using result_type = T