MCPcopy Create free account
hub / github.com/pybind/pybind11 / ~object

Function ~object

include/pybind11/pytypes.h:395–395  ·  view source on GitHub ↗

Destructor; automatically calls `handle::dec_ref()`

Source from the content-addressed store, hash-verified

393 object(object &&other) noexcept : handle(other) { other.m_ptr = nullptr; }
394 /// Destructor; automatically calls `handle::dec_ref()`
395 ~object() { dec_ref(); }
396
397 /** \rst
398 Resets the internal pointer to ``nullptr`` without decreasing the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected