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

Method add

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

Source from the content-addressed store, hash-verified

2344 }
2345 template <typename T>
2346 bool add(T &&val) /* py-non-const */ {
2347 return PySet_Add(m_ptr, detail::object_or_cast(std::forward<T>(val)).ptr()) == 0;
2348 }
2349 void clear() /* py-non-const */ { PySet_Clear(m_ptr); }
2350};
2351

Callers 1

castFunction · 0.45

Calls 2

ptrMethod · 0.80
object_or_castFunction · 0.70

Tested by

no test coverage detected