MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / max_size

Function max_size

Source/external/json.hpp:22153–22183  ·  view source on GitHub ↗

@brief returns the maximum possible number of elements @sa https://json.nlohmann.me/api/basic_json/max_size/

Source from the content-addressed store, hash-verified

22151 /// @brief returns the maximum possible number of elements
22152 /// @sa https://json.nlohmann.me/api/basic_json/max_size/
22153 size_type max_size() const noexcept
22154 {
22155 switch (m_type)
22156 {
22157 case value_t::array:
22158 {
22159 // delegate call to array_t::max_size()
22160 return m_value.array->max_size();
22161 }
22162
22163 case value_t::object:
22164 {
22165 // delegate call to object_t::max_size()
22166 return m_value.object->max_size();
22167 }
22168
22169 case value_t::null:
22170 case value_t::string:
22171 case value_t::boolean:
22172 case value_t::number_integer:
22173 case value_t::number_unsigned:
22174 case value_t::number_float:
22175 case value_t::binary:
22176 case value_t::discarded:
22177 default:
22178 {
22179 // all other types have max_size() == size()
22180 return size();
22181 }
22182 }
22183 }
22184
22185 /// @}
22186

Callers

nothing calls this directly

Calls 1

sizeFunction · 0.85

Tested by

no test coverage detected