CONCEPT POLY(7)

NAME
PolymorphicFunctionObject

DESCRIPTION

A type that can be called and that follows the TR1 ResultOf protocol for return type calculation.

ASSOCIATED TYPES

    &#8226; result_type

    result_of<Fn(A0,...An)>::type
    The result of calling the Polymorphic Function Object.

NOTATION

Fn
    A type playing the role of polymorphic-function-object-type in the PolymorphicFunctionObject concept.

fn
    Object of type Fn

a0,...an
    Object of type A0,...An

VALID EXPRESSIONS
Name | Expression | Type | Semantics
Function Call | fn(a0,...an) | result_type | Calls the function object.

MODELS

    &#8226; std::plus<int>