| 208 | } |
| 209 | |
| 210 | void insert(size_t index, const Value& v) { |
| 211 | if (!array_) |
| 212 | throw std::runtime_error("Value is not an array: " + dump()); |
| 213 | array_->insert(array_->begin() + index, v); |
| 214 | } |
| 215 | void push_back(const Value& v) { |
| 216 | if (!array_) |
| 217 | throw std::runtime_error("Value is not an array: " + dump()); |