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

Function array_range

include/jsoncons/basic_json.hpp:4742–4754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4740 }
4741
4742 array_range_type array_range()
4743 {
4744 switch (storage_kind())
4745 {
4746 case json_storage_kind::array:
4747 return array_range_type(cast<array_storage>().value().begin(),
4748 cast<array_storage>().value().end());
4749 case json_storage_kind::json_ref:
4750 return cast<json_ref_storage>().value().array_range();
4751 default:
4752 JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an array"));
4753 }
4754 }
4755
4756 const_array_range_type array_range() const
4757 {

Callers

nothing calls this directly

Calls 4

storage_kindFunction · 0.85
beginMethod · 0.45
valueMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected