MCPcopy Create free account
hub / github.com/comaps/comaps / Update

Method Update

libs/platform/string_storage_base.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void StringStorageBase::Update(std::map<std::string, std::string> const & values)
104{
105 std::lock_guard guard(m_mutex);
106
107 for (auto const & pair : values)
108 if (pair.second.empty())
109 m_values.erase(pair.first);
110 else
111 m_values[pair.first] = pair.second;
112
113 Save();
114}
115
116void StringStorageBase::DeleteKeyAndValue(std::string_view key)
117{

Callers 1

UpdateFunction · 0.45

Calls 3

SaveFunction · 0.50
emptyMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected