| 374 | } |
| 375 | |
| 376 | inline bool deregister_instance(instance *self, void *valptr, const type_info *tinfo) { |
| 377 | bool ret = deregister_instance_impl(valptr, self); |
| 378 | if (!tinfo->simple_ancestors) { |
| 379 | traverse_offset_bases(valptr, tinfo, self, deregister_instance_impl); |
| 380 | } |
| 381 | return ret; |
| 382 | } |
| 383 | |
| 384 | /// Instance creation function for all pybind11 types. It allocates the internal instance layout |
| 385 | /// for holding C++ objects and holders. Allocation is done lazily (the first time the instance is |
no test coverage detected