Instigate Open Source Documentation

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

Making a const binary method of a class a model of concept Ternary Function. More...

#include <_ternary_function.hpp>

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

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

List of all members.

Public Types

typedef const 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 return value of the function

Static Public Member Functions

static result_type invoke (R(A::*f)(B, C) const, const 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) const >

Making a const binary method of a class a model of concept Ternary Function.

Member Function Documentation

template<typename R, typename A, typename B, typename C>
static result_type instigate::stl::ternary_function::interface< R(A::*)(B, C) const >::invoke ( R(A::*)(B, C) const   f,
const 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