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

Method contains

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

Source from the content-addressed store, hash-verified

2626template <typename D>
2627template <typename T>
2628bool object_api<D>::contains(T &&item) const {
2629 return attr("__contains__")(std::forward<T>(item)).template cast<bool>();
2630}
2631
2632template <typename D>
2633pybind11::str object_api<D>::str() const {

Callers 12

attr_with_type_hintMethod · 0.45
processFunction · 0.45
get_cached_moduleFunction · 0.45
cache_completed_moduleFunction · 0.45
initializeMethod · 0.45
add_class_methodFunction · 0.45
valueFunction · 0.45
exceptionFunction · 0.45
printFunction · 0.45
pytypes.hFile · 0.45
eval_fileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected