Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 811 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 811 Bytes

Function-Invoke c++ std11

Function Invoke it special list function and it name function, which can be run(invoke). Special feature is no arguments.

Function-Invoke its good release, because it use minimum code. Analog Function Pointer, but Function Pointer have problem with create type for function with style ( typedef std::function<void(int32_t)> func_int32_t; ) and it only for methods void Foo(int32_t bar); More argument, more code it bad. Function-Invoke dont use Function Pointer types, dont create problem with creating types.

Class: std::function_invoke Class: std::any

For add function in list function, use method AddFunction(string Name, Function). For run function, use method Invoke(string Name, ...).

Example

Example Img