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

Method empty

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

Source from the content-addressed store, hash-verified

2324 PYBIND11_OBJECT(anyset, object, PyAnySet_Check)
2325 size_t size() const { return static_cast<size_t>(PySet_Size(m_ptr)); }
2326 bool empty() const { return size() == 0; }
2327 template <typename T>
2328 bool contains(T &&val) const {
2329 auto result = PySet_Contains(m_ptr, detail::object_or_cast(std::forward<T>(val)).ptr());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected