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

erase elements using iterators #57

Closed
nlohmann opened this issue Apr 9, 2015 · 3 comments
Closed

erase elements using iterators #57

nlohmann opened this issue Apr 9, 2015 · 3 comments

Comments

@nlohmann
Copy link
Owner

nlohmann commented Apr 9, 2015

Just as other containers, iterators should be used to identify the element to be deleted from a container.

@nlohmann
Copy link
Owner Author

nlohmann commented Apr 9, 2015

  • implement erase(pos) and erase(first, last) for array and object
  • implement erase(pos) and erase(first, last) for other values (only allowed for begin() iterator - would result in null object)
  • finish test cases

@nlohmann
Copy link
Owner Author

Done.

@drewpts
Copy link

drewpts commented Apr 12, 2015

Wow, thanks for such fast work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants