Lines Matching +full:pybind11 +full:- +full:tests
4 The following features must be enabled by including :file:`pybind11/functional.h`.
19 (stateful or stateless) with signature ``int -> int`` as an argument and runs
22 .. code-block:: cpp
28 The example below is more involved: it takes a function of signature ``int -> int``
33 .. code-block:: cpp
45 .. code-block:: cpp
52 After including the extra header file :file:`pybind11/functional.h`, it is almost
55 .. code-block:: cpp
57 #include <pybind11/functional.h>
67 .. code-block:: pycon
92 C++ -> Python -> C++ -> ... roundtrips can significantly decrease
95 There is one exception: pybind11 detects case where a stateless function
98 case, there is no overhead. Pybind11 will extract the underlying C++
99 function pointer from the wrapped function to sidestep a potential C++ ->
100 Python -> C++ roundtrip. This is demonstrated in :file:`tests/test_callbacks.cpp`.
107 The file :file:`tests/test_callbacks.cpp` contains a complete example