MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / scope_exit

Method scope_exit

examples/server/httplib.h:321–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319
320struct scope_exit {
321 explicit scope_exit(std::function<void(void)> &&f)
322 : exit_function(std::move(f)), execute_on_destruction{true} {}
323
324 scope_exit(scope_exit &&rhs)
325 : exit_function(std::move(rhs.exit_function)),

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected