Instigate Open Source Documentation

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

Make plain C function with 2 arguments 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 (result_type(*f)(first_argument_type, second_argument_type), first_argument_type a1, second_argument_type 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 plain C function with 2 arguments 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 ( result_type(*)(first_argument_type, second_argument_type f,
first_argument_type  a1,
second_argument_type  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