Instigate Open Source Documentation

instigate::stl::ternary_function::interface< R(A::*)(B, C)> Struct Template Reference

Making a binary method of a class a model of concept. More...

#include <_ternary_function.hpp>

Inheritance diagram for instigate::stl::ternary_function::interface< R(A::*)(B, C)>:

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

List of all members.

Public Types

typedef A * first_argument_type
 type of the first argument of the function
typedef B second_argument_type
 type of the second argument of the function
typedef C third_argument_type
 type of the third argument of the function
typedef R result_type
 type of the value returned by the function

Static Public Member Functions

static result_type invoke (R(A::*f)(B, C), A *a1, B a2, C a3)
 Invoke the function on given arguments.


Detailed Description

template<typename R, typename A, typename B, typename C>
struct instigate::stl::ternary_function::interface< R(A::*)(B, C)>

Making a binary method of a class a model of concept.

Member Function Documentation

template<typename R, typename A, typename B, typename C>
static result_type instigate::stl::ternary_function::interface< R(A::*)(B, C)>::invoke ( R(A::*)(B, C)  f,
A *  a1,
a2,
a3 
) [inline, static]

Invoke the function on given arguments.

Parameters:
f - the binary method of A
a1 - the object of A the binary method of which should be invoked
a2 - the first argument of the f binary method
a3 - the second argument of the f binary method
Returns:
The result of invocation of f method of a1 object on (a2, a3)


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


© Instigate CJSC, Open Source