MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / is_object

Function is_object

include/jsoncons/basic_json.hpp:3291–3305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3289 }
3290
3291 bool is_object() const noexcept
3292 {
3293 switch (storage_kind())
3294 {
3295 case json_storage_kind::empty_object:
3296 case json_storage_kind::object:
3297 return true;
3298 case json_storage_kind::const_json_ref:
3299 return cast<const_json_ref_storage>().value().is_object();
3300 case json_storage_kind::json_ref:
3301 return cast<json_ref_storage>().value().is_object();
3302 default:
3303 return false;
3304 }
3305 }
3306
3307 bool is_array() const noexcept
3308 {

Callers 3

advanceMethod · 0.85
countMethod · 0.85
countMethod · 0.85

Calls 3

storage_kindFunction · 0.85
is_objectMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected