univalue icon indicating copy to clipboard operation
univalue copied to clipboard

No way to manipulate Array or Array elements

Open luke-jr opened this issue 9 years ago • 1 comments

operator[] returns a const, preventing modifications. Similarly, there is no way to replace items in an Array.

luke-jr avatar Feb 14 '16 09:02 luke-jr

2017_modify branch adds erase() support https://github.com/jgarzik/univalue/tree/2017_modify Needs improvement, comments welcome etc.

insert()-at-position should probably also be added. The combination of the two would permit replacing items (and perhaps a two-line inline replace() helper method).

jgarzik avatar May 03 '17 00:05 jgarzik