A simple example of how to create a KDBindings::Signal and connect a lambda to it.
The output of this example is:
#include <iostream>
#include <string>
int main()
{
Signal<std::string, int> signal;
(void)signal.connect([](std::string arg1, int arg2) {
std::cout << arg1 << " " << arg2 << std::endl;
});
signal.emit("The answer:", 42);
return 0;
}
The main namespace of the KDBindings library.