34 return a.value_ref_ ==
b.value_ref_;
39 if (
const auto *other_typed =
dynamic_cast<const GenericStringKey *
>(&other)) {
40 return value_ref_ == other_typed->value_ref_;
47 auto storable_key = std::make_unique<GenericStringKey>(
"");
48 storable_key->value_ = value_ref_;
49 storable_key->value_ref_ = storable_key->value_;
uint64_t hash() const override
GenericStringKey(StringRef value)
friend bool operator==(const GenericStringKey &a, const GenericStringKey &b)
std::unique_ptr< GenericKey > to_storable() const override
bool equal_to(const GenericKey &other) const override
NonMovable(NonMovable &&other)=delete
unsigned __int64 uint64_t
constexpr uint64_t get_default_hash(const T &v, const Args &...args)