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

Function if_

gil/std.base.hpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static constexpr auto if_(auto cond) noexcept {
61 return [=](auto... code) {
62 return lib::ir::IR{lib::code::ctrl::IfBlock<
63 decltype(cond), lib::code::ctrl::Block<decltype(code)...>, void>{
64 cond, {{code...}}}};
65 };
66}
67
68static constexpr auto loop_(auto... code) noexcept {
69 return lib::ir::IR{lib::code::ctrl::LoopBlock{

Callers 11

read_arrayFunction · 0.85
write_arrayFunction · 0.85
mergesort.cppFile · 0.85
calculator.cppFile · 0.85
skip_whitespaceFunction · 0.85
read_intFunction · 0.85
write_intFunction · 0.85
strlenFunction · 0.85
strcpyFunction · 0.85
while_Function · 0.85
switch_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected