Instigate Open Source Documentation

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

Making plain C function with 3 arguments 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< R(*)(A, B, C)>

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(*f)(A, 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 plain C function with 3 arguments 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,
a1,
a2,
a3 
) [inline, static]

Invoke the function on given arguments.

Parameters:
f - the plain C function with 3 arguments
a1 - the first argument
a2 - the second argument
a3 - the third argument
Returns:
The result of invocation of f on (a1, a2, a3)


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


© Instigate CJSC, Open Source