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

Function case_

gil/std.base.hpp:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120} // namespace _impl_
121
122static constexpr auto case_(auto expr) noexcept {
123 return [=](auto... body) {
124 return _impl_::Case{expr,
125 lib::code::ctrl::Block<decltype(body)...>{{body...}}};
126 };
127}
128
129static constexpr auto default_(auto... body) noexcept {
130 return _impl_::Default{lib::code::ctrl::Block<decltype(body)...>{{body...}}};

Callers 1

calculator.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected