from Itzik S; see issue #28

with minor corrections
This commit is contained in:
Christopher Dunn
2015-01-20 16:24:11 -06:00
parent 9de2c2d84d
commit e87e41cdb0
2 changed files with 26 additions and 7 deletions

View File

@@ -400,8 +400,7 @@ Json::Value obj_value(Json::objectValue); // {}
O(n) expensive operations.
Update 'removed' iff removed.
(This is a better pattern than removeMember().)
JSON_FAIL if !isValidIndex(i) or if not arrayObject
\return true iff removed
\return true iff removed (no exceptions)
*/
bool removeIndex(ArrayIndex i, Value* removed);