You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
Porting some code that used HashMap's drain to OrderMap revealed a small
API gap.
Solution:
Added a drain method, mirroring std::collection::HashMap's drain method.
drain() provides an efficient way to remove all values without shrinking
the capacity of the original OrderMap.
Validation:
Added unit tests and ported an existing HashMap::drain() user to
OrderMap::drain
0 commit comments