| 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 | { |
nothing calls this directly
no test coverage detected