| 80 | } |
| 81 | |
| 82 | bool 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 | |
| 94 | void StringStorageBase::SetValue(std::string_view key, std::string && value) |
| 95 | { |
no test coverage detected