#include <cast.h>
Public Member Functions | |
| loader_life_support () | |
| A new patient frame is created when a function is entered. More... | |
| ~loader_life_support () | |
| ... and destroyed after it returns More... | |
Static Public Member Functions | |
| static PYBIND11_NOINLINE void | add_patient (handle h) |
A life support system for temporary objects created by type_caster::load(). Adding a patient will keep it alive up until the enclosing function returns.
|
inline |
|
inline |
|
inlinestatic |
This can only be used inside a pybind11-bound function, either by argument_loader at argument preparation time or by py::cast() at execution time.
1.8.19