Return a theoretical upper bound on this array's maximum size.
Synopsis
Declared in <bdljsn_json.h>
std::size_t
maxSize() const noexcept;
Description
Return a theoretical upper bound on the largest number of elements that this JsonArray could possibly hold. Requests to create a JsonArray longer than this number of elements are guaranteed to raise a bsl::length_error exception. Note that there is no guarantee that the JsonArray can successfully grow to the returned size, or even close to that size, without running out of resources.
Return Value
theoretical upper bound on this array's maximum size
Created with MrDocs