Searched refs:f_ (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/pybind11/include/pybind11/
H A Dfunctional.h60 func_handle(function&& f_) : f(std::move(f_)) {} argument
85 static handle cast(Func &&f_, return_value_policy policy, handle /* parent */) { argument
86 if (!f_)
89 auto result = f_.template target<function_type>();
93 return cpp_function(std::forward<Func>(f_), policy).release();
/gem5/ext/pybind11/tests/test_embed/
H A Dtest_interpreter.cpp239 std::function<void()> f_; member in struct:scope_exit
240 explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {}
241 ~scope_exit() { if (f_) f_(); }

Completed in 3 milliseconds