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

Method empty

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

Source from the content-addressed store, hash-verified

2179 }
2180 size_t size() const { return static_cast<size_t>(PyTuple_Size(m_ptr)); }
2181 bool empty() const { return size() == 0; }
2182 detail::tuple_accessor operator[](size_t index) const { return {*this, index}; }
2183 template <typename T, detail::enable_if_t<detail::is_pyobject<T>::value, int> = 0>
2184 detail::item_accessor operator[](T &&o) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected