-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Removing item from array #56
Comments
Anyway, copy-pasted code detected. There are lying comments and wrong error message in this method. |
There is currently no function to delete elements from an array. This should be offered to have a "symmetrical" feature set compared to objects. The text of the exception you reported is correct: the type of |
Hm, but there isn't used |
Oops... I'll fix that... :-) |
Fixed the comment in 1bdb6ac. |
84195da implements an erase functions for arrays: void erase(const size_type pos) This function removes the element at the given index Compared to the initial example, I decided against passing a value to delete, because a value can occur multiple times and the result could be unexpected. I hope this helps. |
@nlohmann my thanks! |
Wow, thanks for so fast issue fix :) |
Hi. Thanks for great lib!
Is there support for removing item/items from array?
E.g.:
The text was updated successfully, but these errors were encountered: