Template Function lsst::utils::python::addHash

Function Documentation

template<class PyClass>
void lsst::utils::python::addHash(PyClass &cls)

Add __hash__ method implemented by std::hash.

Template Parameters
  • PyClass: The pybind11 class_ type. The wrapped class must have an enabled specialization of std::hash.

Parameters
  • cls: The PyClass object to which to add a wrapper.