mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-21 14:23:14 +08:00
There are two separate additions: 1. `py::hash(obj)` is equivalent to the Python `hash(obj)`. 2. `.def(hash(py::self))` registers the hash function defined by `std::hash<T>` as the Python hash function.