Main Content

clibgen.api.FunctionTypeDefinition

R2026b

MATLAB definition for C function pointer or std::function

Since R2026b

    Description

    A clibgen.api.FunctionTypeDefinition object represents the MATLAB® definition of a C function pointer or std::function.

    Creation

    ftDef = idef.FunctionTypes creates a function types definition object from the FunctionTypes property of a clibgen.api.InterfaceDefinition object.

    Function types define function pointers std::function, typedefs, or using aliases for function% pointers) are automatically detected and included. Unlike pointer% properties or pointer method arguments, function types do not require% a call to define() — they are fully specified by their C++ signature.

    Properties

    expand all

    This property is read-only.

    Fully qualified C++ name, represented as a string scalar.

    MATLAB name for the C++ construct, specified as a string scalar.

    Whether this construct is included in the interface, specified as a numeric or logical 1 (true) or 0 (false).

    Doxygen @brief comments from the header file, specified as a string scalar. You can modify the description in this FunctionTypeDefinition object.

    Examples

    Example 1

    Version History

    Introduced in R2026b