Searched refs:RunOnDestruction (Results 1 – 2 of 2) sorted by relevance
456 class RunOnDestruction { class458 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function in fuzzer::RunOnDestruction459 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()466 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()467 return RunOnDestruction<Fn>(fn); in at_scope_exit()
1040 class RunOnDestruction {1042 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function1043 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()1052 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()1053 return RunOnDestruction<Fn>(fn); in at_scope_exit()