Searched refs:object_or_cast (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h467 auto object_or_cast(T &&o) -> decltype(std::forward<T>(o)) { return std::forward<T>(o); }
470 object object_or_cast(T &&o);
472 inline handle object_or_cast(PyObject *ptr) { return ptr; } function
489 Policy::set(obj, key, object_or_cast(std::forward<T>(value)));
492 get_cache() = reinterpret_borrow<object>(object_or_cast(std::forward<T>(value)));
1230 return PyDict_Contains(m_ptr, detail::object_or_cast(std::forward<T>(key)).ptr()) == 1;
1266 PyList_Append(m_ptr, detail::object_or_cast(std::forward<T>(val)).ptr());
1270 detail::object_or_cast(std::forward<T>(val)).ptr());
1286 return PySet_Add(m_ptr, detail::object_or_cast(std::forward<T>(val)).ptr()) == 0;
1290 return PySet_Contains(m_ptr, detail::object_or_cast(st
[all...]
H A Dcast.h1729 object object_or_cast(T &&o) { return pybind11::cast(std::forward<T>(o)); }

Completed in 18 milliseconds