diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-07-18 14:29:44 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-07-19 12:54:41 +1000 |
| commit | 5df8073c3c4213075d1c0ee6267cc58848b86721 (patch) | |
| tree | 034ca45c78357a748d094d59b884f66cb1e82c7e /src/hash_map.hh | |
| parent | d4962d94ce36870091d159b93daa4dd07441810c (diff) | |
Code style tweaks
Diffstat (limited to 'src/hash_map.hh')
| -rw-r--r-- | src/hash_map.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hash_map.hh b/src/hash_map.hh index fb9da408..b5f054bc 100644 --- a/src/hash_map.hh +++ b/src/hash_map.hh @@ -249,7 +249,8 @@ struct HashMap } } - constexpr void erase(const Key& key) { unordered_remove(key); } + template<typename KeyType, typename = EnableIfHashCompatible<KeyType>> + constexpr void erase(const KeyType& key) { unordered_remove(key); } template<typename KeyType, typename = EnableIfHashCompatible<KeyType>> constexpr void remove_all(const KeyType& key) |
