MCPcopy Create free account
hub / github.com/pybind/pybind11 / deregister_instance

Function deregister_instance

include/pybind11/detail/class.h:376–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376inline 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

Callers 3

clear_instanceFunction · 0.85
load_as_unique_ptrMethod · 0.85

Calls 2

deregister_instance_implFunction · 0.85
traverse_offset_basesFunction · 0.85

Tested by

no test coverage detected