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

Method handle

benchmark/complex/switch.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 void action() {}
118
119 void handle(const e1&) {
120 switch (state) {
121 default:
122 break;
123 case State::S1:
124 if (guard()) {
125 action();
126 state = State::S2;
127 }
128 break;
129 }
130 }
131
132 void handle(const e2&) {
133 switch (state) {

Callers 1

mainFunction · 0.45

Calls 2

guardClass · 0.50
actionClass · 0.50

Tested by

no test coverage detected