Change the size of this array to the specified count.

Synopsis

Declared in <bdljsn_json.h>

void
resize(std::size_t count);

Description

Change the size of this JsonArray to the specified count. If count < size(), the elements in the range [count .. size())] are erased, and this function does not throw. If count > size(), the (newly created) elements in the range [size() .. count)] are default‐constructed Json objects, and if an exception is thrown, *this is unaffected. Throw bsl::length_error if count > maxSize().

Parameters

Name

Description

count

new number of elements

Created with MrDocs