Change the size of this array to count, filling with json as needed.
Synopsis
Declared in <bdljsn_json.h>
void
resize(
std::size_t count,
Json const& json);
Description
Change the size of this JsonArray to the specified count, inserting copies of the specified json at the end if count > size(). If count < size(), the elements in the range [count .. size())] are erased json is ignored, and this method does not throw. If count > size() and an exception is thrown, *this is unaffected. Throw bsl::length_error if count > maxSize().
Parameters
Name |
Description |
count |
new number of elements |
json |
fill value for new elements |
Created with MrDocs