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

Method clear

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

Source from the content-addressed store, hash-verified

2216 detail::dict_iterator begin() const { return {*this, 0}; }
2217 detail::dict_iterator end() const { return {}; }
2218 void clear() /* py-non-const */ { PyDict_Clear(ptr()); }
2219 template <typename T>
2220 bool contains(T &&key) const {
2221 auto result = PyDict_Contains(m_ptr, detail::object_or_cast(std::forward<T>(key)).ptr());

Callers

nothing calls this directly

Calls 1

ptrFunction · 0.85

Tested by

no test coverage detected