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

Method empty

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

Source from the content-addressed store, hash-verified

2213
2214 size_t size() const { return static_cast<size_t>(PyDict_Size(m_ptr)); }
2215 bool empty() const { return size() == 0; }
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()); }

Callers 15

initialize_genericMethod · 0.45
dispatcherMethod · 0.45
keep_alive_implFunction · 0.45
vector_modifiersFunction · 0.45
bind_vectorFunction · 0.45
bind_mapFunction · 0.45
arrayMethod · 0.45
initMethod · 0.45
import_or_getattrFunction · 0.45
finalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected