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

#include <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

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

Detailed Description

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

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. If f is an object of class equal_to<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 Equality Comparable.
See Also
http://www.sgi.com/tech/stl/equal_to.html
binary_function

Member Function Documentation

template<typename T>
__host__ __device__ bool thrust::equal_to< T >::operator() ( const T &  lhs,
const T &  rhs 
) const
inline

Function call operator. The return value is lhs == rhs.


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