| 385 | } |
| 386 | |
| 387 | size_t node::size() const |
| 388 | { |
| 389 | if (is<array>()) |
| 390 | { |
| 391 | return std::get<array>(m_data).size(); |
| 392 | } |
| 393 | if (is<object>()) |
| 394 | { |
| 395 | return std::get<object>(m_data).size(); |
| 396 | } |
| 397 | throw exceptions::invalid_cast(object_type, to_string(type()), VILI_EXC_INFO); |
| 398 | } |
| 399 | |
| 400 | bool node::empty() const |
| 401 | { |
no test coverage detected