Thrust
|
#include <thrust/functional.h>
Public Types | |
typedef Argument1 | first_argument_type |
The type of the function object's first argument. | |
typedef Argument2 | second_argument_type |
The type of the function object's second argument. | |
typedef Result | result_type |
The type of the function object's result;. | |
binary_function
is an empty base class: it contains no member functions or member variables, but only type information. The only reason it exists is to make it more convenient to define types that are models of the concept Adaptable Binary Function. Specifically, any model of Adaptable Binary Function must define nested typedefs
. Those typedefs
are provided by the base class binary_function
.
The following code snippet demonstrates how to construct an Adaptable Binary Function using binary_function
.
binary_function
obsolete, its use is optional if C++11 language features are enabled.