Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Concept PolymorphicFunctionObject

PolymorphicFunctionObject

Description

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

Associated types

  • 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

  • std::plus<int>

PrevUpHomeNext