Instigate Open Source Documentation

instigate::stl::unary_function::interface< R(*)(A)> Struct Template Reference

Making plain C function with 1 arguments a model of concept instigate::stl::unary_function. More...

#include <_unary_function.hpp>

Inheritance diagram for instigate::stl::unary_function::interface< R(*)(A)>:

instigate::generic::assignable::interface< R(*)(A)>

List of all members.

Public Types

typedef A argument_type
 type of the function argument
typedef R result_type
 type of the value returned by the function

Static Public Member Functions

static result_type invoke (R(*f)(A), A a)
 Invoke the function on given arguments.


Detailed Description

template<typename A, typename R>
struct instigate::stl::unary_function::interface< R(*)(A)>

Making plain C function with 1 arguments a model of concept instigate::stl::unary_function.

Member Function Documentation

template<typename A, typename R>
static result_type instigate::stl::unary_function::interface< R(*)(A)>::invoke ( R(*)(A)  f,
a 
) [inline, static]

Invoke the function on given arguments.

Parameters:
f is the unary function to be invoked
a is the argument of f
Returns:
the result of invocation of f on a


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


© Instigate CJSC, Open Source