Template Function lsst::utils::python::addHash¶
Function Documentation¶
-
template<class
PyClass
>
voidlsst::utils::python
::
addHash
(PyClass &cls)¶ Add
__hash__
method implemented bystd::hash
.- Template Parameters
PyClass
: The pybind11 class_ type. The wrapped class must have an enabled specialization ofstd::hash
.
- Parameters
cls
: ThePyClass
object to which to add a wrapper.