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

Method empty

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

Source from the content-addressed store, hash-verified

2247 return static_cast<size_t>(result);
2248 }
2249 bool empty() const { return size() == 0; }
2250 detail::sequence_accessor operator[](size_t index) const { return {*this, index}; }
2251 template <typename T, detail::enable_if_t<detail::is_pyobject<T>::value, int> = 0>
2252 detail::item_accessor operator[](T &&o) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected