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

Method GetValue

libs/platform/string_storage_base.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool StringStorageBase::GetValue(std::string_view key, std::string & outValue) const
83{
84 std::lock_guard guard(m_mutex);
85
86 auto const found = m_values.find(key);
87 if (found == m_values.end())
88 return false;
89
90 outValue = found->second;
91 return true;
92}
93
94void StringStorageBase::SetValue(std::string_view key, std::string && value)
95{

Callers 3

UsageStatsMethod · 0.45
EnterBackgroundMethod · 0.45
GetFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected