Searched refs:f_ (Results 1 – 4 of 4) sorted by relevance
29 ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard()31 ScopeGuard(ScopeGuard&& that) noexcept : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()36 ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()41 if (active_) f_(); in ~ScopeGuard()57 F f_; variable
85 Fn f_;89 explicit NonCopyableFunctionTypeEraser(Fn f) : f_(std::move(f)) {} in NonCopyableFunctionTypeEraser()90 Ret operator()(Args... args) override { return f_(std::move(args)...); } in operator()94 std::unique_ptr<NonCopyableFunctionBase> f_;100 f_ = std::make_unique<NonCopyableFunctionTypeEraser<F>>(std::move(f)); in NonCopyableFunction()108 if (f_) return (*f_)(std::move(args)...); in operator()
542 std::function<void()> f_; member in keystore::__anon4804d9a70811::Finalize545 explicit Finalize(std::function<void()> f) : f_(f) {} in Finalize()547 if (f_) f_(); in ~Finalize()549 void release() { f_ = {}; } in release()
452 explicit final_action(F f) : f_(move(f)) {}453 ~final_action() { f_(); }456 F f_;