Instigate Open Source Documentation

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

Make a const unary method of a class a model of the instigate::stl::binary_function "binary_function" concept. More...

#include <_binary_function.hpp>

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

instigate::generic::assignable::interface< T >

List of all members.

Public Types

typedef const 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) const, const 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) const >

Make a const unary method of a class a model of the instigate::stl::binary_function "binary_function" concept.

Member Function Documentation

template<typename A1, typename A2, typename R>
static result_type instigate::stl::binary_function::interface< R(A1::*)(A2) const >::invoke ( R(A1::*)(A2) const   f,
const 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