MCPcopy Create free account
hub / github.com/boost-ext/sml / handle

Method handle

benchmark/complex/variant.cpp:134–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 S47, S48, S49, S50> state;
133public:
134 void handle(const e1&) {
135 std::visit(overload{
136 [&](S1) { if (guard()) action(); state = S2{}; },
137 [](auto) { }
138 }, state);
139 }
140
141 void handle(const e2&) {
142 std::visit(overload{

Callers 1

mainFunction · 0.45

Calls 2

guardClass · 0.50
actionClass · 0.50

Tested by

no test coverage detected