diff options
Diffstat (limited to 'src/mongo/util/unordered_fast_key_table.h')
-rw-r--r-- | src/mongo/util/unordered_fast_key_table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/util/unordered_fast_key_table.h b/src/mongo/util/unordered_fast_key_table.h index 71a67355b7a..763ac0e4d57 100644 --- a/src/mongo/util/unordered_fast_key_table.h +++ b/src/mongo/util/unordered_fast_key_table.h @@ -170,6 +170,10 @@ public: return get(HashedKey(key)); } + void clear() { + *this = {}; + } + /** * @return number of elements removed */ |