| 1491 | } |
| 1492 | |
| 1493 | void AnyMap::update(const AnyMap& other, bool keepExisting) |
| 1494 | { |
| 1495 | for (const auto& [key, value] : other.ordered()) { |
| 1496 | if (!keepExisting || m_data.count(key) == 0) { |
| 1497 | (*this)[key] = value; |
| 1498 | } |
| 1499 | } |
| 1500 | } |
| 1501 | |
| 1502 | void AnyMap::exclude(const string& key) |
| 1503 | { |