@@ -284,11 +284,25 @@ namespace Json {
284284 // / (You may need to say 'value[0u]' to get your compiler to distinguish
285285 // / this from the operator[] which takes a string.)
286286 Value &operator []( ArrayIndex index );
287- // / Access an array element (zero based index )
287+
288+ // / Access an array element (zero based index ).
289+ // / If the array contains less than index element, then null value are inserted
290+ // / in the array so that its size is index+1.
291+ // / (You may need to say 'value[0u]' to get your compiler to distinguish
292+ // / this from the operator[] which takes a string.)
293+ Value &operator []( int index );
294+
295+ // / Access an array element (zero based index )
288296 // / (You may need to say 'value[0u]' to get your compiler to distinguish
289297 // / this from the operator[] which takes a string.)
290298 const Value &operator []( ArrayIndex index ) const ;
291- // / If the array contains at least index+1 elements, returns the element value,
299+
300+ // / Access an array element (zero based index )
301+ // / (You may need to say 'value[0u]' to get your compiler to distinguish
302+ // / this from the operator[] which takes a string.)
303+ const Value &operator []( int index ) const ;
304+
305+ // / If the array contains at least index+1 elements, returns the element value,
292306 // / otherwise returns defaultValue.
293307 Value get ( ArrayIndex index,
294308 const Value &defaultValue ) const ;
0 commit comments