MCPcopy Create free account
hub / github.com/davisking/dlib / capsule

Function capsule

dlib/external/pybind11/include/pybind11/pytypes.h:2047–2048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2045 PYBIND11_OBJECT_DEFAULT(capsule, object, PyCapsule_CheckExact)
2046 PYBIND11_DEPRECATED("Use reinterpret_borrow<capsule>() or reinterpret_steal<capsule>()")
2047 capsule(PyObject *ptr, bool is_borrowed)
2048 : object(is_borrowed ? object(ptr, borrowed_t{}) : object(ptr, stolen_t{})) {}
2049
2050 explicit capsule(const void *value,
2051 const char *name = nullptr,

Callers 6

castMethod · 0.85
initializeMethod · 0.85
cast_implFunction · 0.85
native_enum_dataMethod · 0.85
cpp_conduit_methodFunction · 0.85

Calls 2

objectFunction · 0.70

Tested by

no test coverage detected