MCPcopy Create free account
hub / github.com/SheafificationOfG/based-cpp / switch_

Function switch_

gil/std.base.hpp:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static constexpr auto switch_(auto expr) noexcept {
134 return [=](auto... cases) {
135 constexpr auto switcher = global_(_impl_::switcher);
136 return block_(switcher = expr, _impl_::switch_impl(*switcher, cases...));
137 };
138}
139
140static constexpr auto none_ = lib::ir::IR{lib::none::None{}};
141

Callers 1

calculator.cppFile · 0.85

Calls 3

global_Function · 0.85
block_Function · 0.85
switch_implFunction · 0.85

Tested by

no test coverage detected