You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidHelloWorld()
{
std::cout << "Hello, World!" << std::endl;
}
// ...// A signal with no arguments
wigwag::signal<void()> s;
// Connecting to the signal
wigwag::token t = s.connect(&HelloWorld);
// Invoking the signals();
There are two essential classes in wigwag: signal and token. The first, is apparently the signal itself, and the second represents a connection between a handler and a signal. The handler remains connected to a signal while the token object is alive.