MCPcopy Create free account
hub / github.com/Cantera/cantera / update

Method update

src/base/AnyMap.cpp:1493–1500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1491}
1492
1493void 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
1502void AnyMap::exclude(const string& key)
1503{

Callers

nothing calls this directly

Calls 1

orderedMethod · 0.80

Tested by

no test coverage detected