Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ Hashable
Method
Hashable
tests/test_operator_overloading.cpp:256–256 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
254
255
struct Hashable : Comparable {
256
explicit Hashable(int value) : Comparable{value} {};
257
size_t hash() const { return static_cast<size_t>(value); }
258
};
259
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected