Implements Remove function for Dictionary.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-22 17:18:53 +01:00
parent 1f882b9596
commit 7c98d3d4eb
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ namespace Arbutils::Collections {
return true; return true;
} }
inline void Remove(KeyT key){
_map.erase(key);
}
[[nodiscard]] inline size_t Count() const { return _map.size(); } [[nodiscard]] inline size_t Count() const { return _map.size(); }
inline bool Has(KeyT key) const noexcept { return _map.find(key) != _map.end(); } inline bool Has(KeyT key) const noexcept { return _map.find(key) != _map.end(); }