"tests/test_operator_overloading.cpp" did not exist on "b3f3d79f4c5ea6217f9028d2971b6538dd010ac6"
Access C++ hash functions from Python and vice versa (#1034)
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.
Showing
Please register or sign in to comment