Instigate Open Source Documentation

instigate::stl::binary_function::interface< R(A1::*)(A2)> Struct Template Reference

Make an unary method of a class a model of the Binary Function concept. More...

#include <_binary_function.hpp>

Inheritance diagram for instigate::stl::binary_function::interface< R(A1::*)(A2)>:

instigate::generic::assignable::interface< R(A1::*)(A2)>

List of all members.

Public Types

typedef A1 * first_argument_type
 The type of the binary_function's first argument.
typedef A2 second_argument_type
 The type of the binary_function's second argument.
typedef R result_type
 The type returned when the binary_function is called.

Static Public Member Functions

static result_type invoke (R(A1::*f)(A2), A1 *a1, A2 a2)
 Invoke the function on given arguments.


Detailed Description

template<typename A1, typename A2, typename R>
struct instigate::stl::binary_function::interface< R(A1::*)(A2)>

Make an unary method of a class a model of the Binary Function concept.

Member Function Documentation

template<typename A1, typename A2, typename R>
static result_type instigate::stl::binary_function::interface< R(A1::*)(A2)>::invoke ( R(A1::*)(A2)  f,
A1 *  a1,
A2  a2 
) [inline, static]

Invoke the function on given arguments.

Parameters:
f - the binary function
a1 - the first argument
a2 - the second argument
Returns:
the result of the invocation of f on (a1, a2)


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


© Instigate CJSC, Open Source