Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features: Erase method for Multiset now remove only one instance of the element similar to iterator erase( iterator pos ) for c++ data structure std::multiset. #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alessandrostr95
Copy link

In details, the new features are:

  • Multiset: Changed Erase method to remove only one instance of the element (not all of them) similar to iterator erase( iterator pos ) for c++ data structure std::multiset.
  • Multiset: Added EraseAll method to remove all instances of the element. It replaces the previous implementation of Erase method.
  • Multiset: Added Count method that returns the number of instances of the element in the multiset.
  • RbTree: Added Compare method that compare two keys w.r.t. the comparator of the tree.

- Multiset: Changed Erase method to remove only one instance of the element (not all of them) similar to `iterator erase( iterator pos )` for c++ data structure `std::multiset`.
- Multiset: Added EraseAll method to remove all instances of the element. It replaces the previous implementation of Erase method.
- Multiset: Added Count method that returns the number of instances of the element in the multiset.
- RbTree: Added Compare method that compare two keys w.r.t. the comparator of the tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant