overloaded
overloaded
Section titled “overloaded”#include <Event.hpp>Inherits:
Ts
Helper for exhaustive std::visit with multiple lambdas.
Example:
std::visit(overloaded{ [](/api/const keyevent& k) { /* ... *‍/ }, [](/api/const mousepressevent& m) { /* ... *‍/ }, [](/api/const auto&) { /* catch-all *‍/ }}, event);