Function Signatures

#include "signature.tcc"
Function signature examples.
signature encoding description
short int f(char, float) h: c f Function that returns a value.
void f(char, float) : c f Function that does not return a value.
void f(Tuple<int, char>&, float) : ic f A Tuple parameter.
Object<int, char> f(float) (ic): f Returning an Object.
int f(Vector<signed char>&, int) i: [b] i A Vector parameter.

Functions

template <class R, class… FArgs>
void signature(Stream &io, R (*f)(FArgs...))

Get the signature of a function.

Return
Function signature.
Parameters
  • io -

    Input / output object.

  • f -

    Function pointer.

template <class R, class C, class… FArgs>
void signature(Stream & io, R(C::*)(FArgs...) f)

Get the signature of a function.

Return
Function signature.
Parameters
  • io -

    Input / output object.

  • f -

    Function pointer.

template <class… FArgs>
void signature(Stream &io, void (*f)(FArgs...))

Get the signature of a function.

Return
Function signature.
Parameters
  • io -

    Input / output object.

  • f -

    Function pointer.

template <class C, class… FArgs>
void signature(Stream & io, void(C::*)(FArgs...) f)

Get the signature of a function.

Return
Function signature.
Parameters
  • io -

    Input / output object.

  • f -

    Function pointer.