33 [[nodiscard]]
const std::string &
key()
const
71 return std::hash<std::string>{}(key.key());
A type-safe wrapper for artifact keys.
const std::string & key() const
Gets the underlying string value.
ArtifactKey(std::string key)
Constructs an ArtifactKey from a string value.
bool operator==(const ArtifactKey &other) const =default
Equality comparison operator.
auto operator<=>(const ArtifactKey &other) const =default
Three-way comparison operator for ordered containers.
std::size_t operator()(const porytiles2::ArtifactKey &key) const noexcept
Hash function for ArtifactKey.