MCPcopy Create free account
hub / github.com/pybind/pybind11 / hash

Method hash

tests/test_operator_overloading.cpp:257–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 struct Hashable : Comparable {
256 explicit Hashable(int value) : Comparable{value} {};
257 size_t hash() const { return static_cast<size_t>(value); }
258 };
259
260 struct Hashable2 : Hashable {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected