| 529 | } |
| 530 | |
| 531 | bool node::contains(const std::string& key) const |
| 532 | { |
| 533 | if (is<object>()) |
| 534 | { |
| 535 | const vili::object& map = std::get<object>(m_data); |
| 536 | if (map.find(key) != map.cend()) |
| 537 | { |
| 538 | return true; |
| 539 | } |
| 540 | return false; |
| 541 | } |
| 542 | else |
| 543 | { |
| 544 | throw exceptions::invalid_cast(object_type, to_string(type()), VILI_EXC_INFO); |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | void node::erase(size_t index) |
| 549 | { |
no test coverage detected