7 The dependency policy is used to create life-time dependencies between values.
8 This is needed for example when returning internal references to some class.
15 #include <luabind/dependency_policy.hpp>
22 dependency(nurse_index, patient_index)
27 ================= ==========================================================
29 ================= ==========================================================
30 ``nurse_index`` The index which will keep the patient alive.
31 ``patient_index`` The index which will be kept alive.
32 ================= ==========================================================
42 B& get() { return member; }
48 .def("get", &X::get, **dependency(result, _1)**)