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

Method DeleteKeyAndValue

libs/platform/string_storage_base.cpp:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void StringStorageBase::DeleteKeyAndValue(std::string_view key)
117{
118 std::lock_guard guard(m_mutex);
119
120 auto const found = m_values.find(key);
121 if (found != m_values.end())
122 {
123 m_values.erase(found);
124 Save();
125 }
126}
127} // namespace platform

Callers 1

DeleteFunction · 0.80

Calls 4

SaveFunction · 0.50
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected