asrt
Automated System Runtime Testing library
Loading...
Searching...
No Matches
asrt::callback< FnPtr > Struct Template Reference

A type-erasing wrapper for C-style callback + void* pairs. More...

Detailed Description

template<typename FnPtr>
struct asrt::callback< FnPtr >

A type-erasing wrapper for C-style callback + void* pairs.

Specialised for function-pointer types of the form R(*)(void*, Args...). Accepts either:

  • a raw (fn_ptr, void*) pair, or
  • any invocable whose signature matches R(Args...).

The documentation for this struct was generated from the following file: