Lines Matching defs:cast
101 may need to be converted back into a Python object using `handle::cast()`.
200 Attempt to cast the Python object into the given C++ type. A `cast_error`
203 template <typename T> T cast() const;
270 // Calling cast() on an object lvalue just copies (via handle::cast)
271 template <typename T> T cast() const &;
273 template <typename T> T cast() &&;
465 // through pybind11::cast(obj) to convert it to an `object`.
468 // The following casting version is implemented in cast.h:
509 template <typename T> T cast() const { return get_cache().template cast<T>(); }
1045 // otherwise you get back the unsigned long or unsigned long long value cast to (Unsigned).
1421 return attr("__contains__")(std::forward<T>(item)).template cast<bool>();