Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ GetValue
Method
GetValue
libs/base/bidirectional_map.hpp:57–64 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
}
56
57
bool GetValue(K const & key, V & value) const
58
{
59
auto const it = m_kToV.find(key);
60
if (it == m_kToV.cend())
61
return false;
62
value = it->second;
63
return true;
64
}
65
66
bool GetKey(V const & value, K & key) const
67
{
Callers
4
UNIT_TEST
Function · 0.45
FifoCacheTest
Class · 0.45
UNIT_TEST
Function · 0.45
UNIT_TEST
Function · 0.45
Calls
2
find
Method · 0.45
cend
Method · 0.45
Tested by
3
UNIT_TEST
Function · 0.36
UNIT_TEST
Function · 0.36
UNIT_TEST
Function · 0.36