Overloaded_FunctionPointer wraps a function pointer. It is implicitly constructible from the pointer, and provides an operator() method that calls through to the underlying function.

Synopsis

Declared in <bdlf_overloaded.h>

template<
    class RET,
    class... ARGS>
struct Overloaded_FunctionPointer;

Type Aliases

Name

Description

FpType

Alias for a free function pointer of the given signature.

Member Functions

Name

Description

Overloaded_FunctionPointer [constructor]

Construct this object from the specified f.

operator()

Call the function passed to the constructor with the specified args.

Data Members

Name

Description

d_fp

Free function pointer of the given signature.

Created with MrDocs