Add LanguageHash<std::vector<T>>.

This commit is contained in:
Alexander McCord 2024-06-02 19:34:09 -07:00
parent fd810237c3
commit ba53dd03dc

View file

@ -434,4 +434,16 @@ struct LanguageHash<std::array<T, I>>
}
};
template<typename T>
struct LanguageHash<std::vector<T>>
{
size_t operator()(const std::vector<T>& vector) const
{
size_t seed = 0;
for (const T& t : vector)
hashCombine(seed, languageHash(t));
return seed;
}
};
} // namespace Luau::EqSat