Adds function to remove by hashed value in StringViewDictionary
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-05-16 17:00:12 +02:00
parent e2ea281de1
commit 9dc7a0c6e3
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ namespace ArbUt {
/// @brief Removes an item with a certain key from the dictionary
inline void Remove(const StringView& key) { _map.erase(key); }
/// @brief Removes an item with a certain key hash from the dictionary
inline void Remove(u32 keyHash) { _map.erase(keyHash); }
/// @brief Returns the number of items in the dictionary.
[[nodiscard]] inline size_t Count() const noexcept { return _map.size(); }