diff --git a/src/tint/utils/hashmap.h b/src/tint/utils/hashmap.h index 81bebf2410..e17938987f 100644 --- a/src/tint/utils/hashmap.h +++ b/src/tint/utils/hashmap.h @@ -19,6 +19,7 @@ #include #include +#include "src/tint/utils/hash.h" #include "src/tint/utils/hashset.h" namespace tint::utils { @@ -31,7 +32,7 @@ namespace tint::utils { template , + typename HASH = Hasher, typename EQUAL = std::equal_to> class Hashmap { /// LazyCreator is a transient structure used to late-build the Entry::value, when inserted into diff --git a/src/tint/utils/hashset.h b/src/tint/utils/hashset.h index f88a304bf9..3009c72eba 100644 --- a/src/tint/utils/hashset.h +++ b/src/tint/utils/hashset.h @@ -23,6 +23,7 @@ #include #include "src/tint/debug.h" +#include "src/tint/utils/hash.h" #include "src/tint/utils/vector.h" namespace tint::utils { @@ -39,7 +40,7 @@ enum class AddAction { /// An unordered set that uses a robin-hood hashing algorithm. /// @see the fantastic tutorial: https://programming.guide/robin-hood-hashing.html -template , typename EQUAL = std::equal_to> +template , typename EQUAL = std::equal_to> class Hashset { /// A slot is a single entry in the underlying vector. /// A slot can either be empty or filled with a value. If the slot is empty, #hash and #distance