thrust
Public Types | Public Member Functions | List of all members
thrust::greater< T > Struct Template Reference

#include <thrust/functional.h>

Public Types

typedef T first_argument_type
 The type of the function object's first argument.
 
typedef T second_argument_type
 The type of the function object's second argument.
 
typedef bool result_type
 The type of the function object's result;.
 

Public Member Functions

__thrust_exec_check_disable__ __host__ __device__ bool operator() (const T &lhs, const T &rhs) const
 

Detailed Description

template<typename T>
struct thrust::greater< T >

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

Template Parameters
Tis a model of LessThan Comparable.
See also
http://www.sgi.com/tech/stl/greater.html
binary_function

The documentation for this struct was generated from the following file: