Lines Matching refs:function
2 pybind11/functional.h: std::function<> support
19 struct type_caster<std::function<Return(Args...)>> {
20 using type = std::function<Return(Args...)>;
32 if (!isinstance<function>(src))
35 auto func = reinterpret_borrow<function>(src);
38 When passing a C++ function as an argument to another C++
39 function via Python, every function call would normally involve
41 Here, we try to at least detect the case where the function is
42 stateless (i.e. function pointer or lambda function without
59 function f;
60 func_handle(function&& f_) : f(std::move(f_)) {}
64 function kill_f(std::move(f));