Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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;
133
public:
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
main
Function · 0.45
Calls
2
guard
Class · 0.50
action
Class · 0.50
Tested by
no test coverage detected