Public Member Functions | List of all members
thrust::binary_negate< Predicate > Struct Template Reference

#include <thrust/functional.h>

Public Member Functions

__host__ __device__ binary_negate (Predicate p)
__thrust_exec_check_disable__ __host__ __device__ bool operator() (const typename Predicate::first_argument_type &x, const typename Predicate::second_argument_type &y)

Additional Inherited Members

- Public Types inherited from thrust::binary_function< Predicate::first_argument_type, Predicate::second_argument_type, bool >
typedef Predicate::first_argument_type first_argument_type
 The type of the function object's first argument.
typedef Predicate::second_argument_type second_argument_type
 The type of the function object's second argument.
typedef bool result_type
 The type of the function object's result;.

Detailed Description

template<typename Predicate>
struct thrust::binary_negate< Predicate >

binary_negate is a function object adaptor: it is an Adaptable Binary Predicate that represents the logical negation of some other Adaptable Binary Predicate. That is: if f is an object of class binary_negate<AdaptablePredicate>, then there exists an object pred of class AdaptableBinaryPredicate such that f(x,y) always returns the same value as !pred(x,y). There is rarely any reason to construct a binary_negate directly; it is almost always easier to use the helper function not2.

See also

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