Bruce Merry 37de2da9dd 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.
2017-08-30 14:22:00 +02:00
..
2016-04-26 23:48:55 +02:00
2017-06-08 16:42:44 -03:00
2017-08-17 15:10:51 +02:00
2017-08-17 15:10:51 +02:00
2017-08-17 15:10:51 +02:00
2016-09-19 13:45:31 +02:00
2015-10-13 03:16:44 +02:00
2017-01-01 17:14:27 +01:00
2017-03-12 22:36:48 +01:00