mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 09:03:54 +00:00
37de2da9dd
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. |
||
---|---|---|
.. | ||
pybind11 |