Nugget
|
#include <functional.h>
Public Member Functions | |
pointer_to_binary_function (Result(*pFunction)(Arg1, Arg2)) | |
Result | operator() (Arg1 x, Arg2 y) const |
Protected Attributes | |
Result(* | mpFunction )(Arg1, Arg2) |
Additional Inherited Members | |
Public Types inherited from eastl::binary_function< Arg1, Arg2, Result > | |
typedef Arg1 | first_argument_type |
typedef Arg2 | second_argument_type |
typedef Result | result_type |
This is an adapter template which converts a pointer to a standalone function to a function object. This allows standalone functions to work in many cases where the system requires a function object.