Make BorrowedPtr hashable.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4323e59ed4
commit
893aa969d5
|
@ -52,4 +52,12 @@ namespace ArbUt {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace std {
|
||||||
|
|
||||||
|
template <class T> struct hash<ArbUt::BorrowedPtr<T>> {
|
||||||
|
std::size_t operator()(const ArbUt::BorrowedPtr<T>& k) const { return (size_t)k.GetRaw(); }
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif // ARBUTILS_BORROWEDPTR_HPP
|
#endif // ARBUTILS_BORROWEDPTR_HPP
|
||||||
|
|
Loading…
Reference in New Issue