forked from contain-rs/vec-map
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep track of number of set elements in map
This allows much more efficient versions of len() and is_empty(), and also enables ExactSizeIterator to be implemented to VecMap's iterators. Fixes contain-rs#32
- Loading branch information
Showing
1 changed file
with
87 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters