mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[dxvk] Added convenience equal checker for unordered maps
This commit is contained in:
parent
2f454e73f6
commit
254676049a
@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
|
struct DxvkEq {
|
||||||
|
template<typename T>
|
||||||
|
size_t operator () (const T& a, const T& b) const {
|
||||||
|
return a.eq(b);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
struct DxvkHash {
|
struct DxvkHash {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
size_t operator () (const T& object) const {
|
size_t operator () (const T& object) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user