[#nlohmann-basic_json-0c-max_size] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::max_size :relfileprefix: ../../ :mrdocs: returns the maximum possible number of elements == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-0c/size_type.adoc[size_type] max_size() const noexcept; ---- == Return Value the maximum possible number of elements (the array/object max_size() for arrays and objects, size() for all other types) [.small]#Created with https://www.mrdocs.com[MrDocs]#