MCPcopy Create free account
hub / github.com/OSSystems/EasySplash / get_entry

Method get_entry

src/lru_cache.hpp:35–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 T* get_entry(Key const &p_key)
36 {
37 auto map_iter = m_entry_map.find(p_key);
38 if (map_iter == m_entry_map.end())
39 return nullptr;
40
41 auto &list_iter = map_iter->second;
42
43 if (list_iter != m_entry_list.begin())
44 {
45 m_entry_list.splice(m_entry_list.begin(), m_entry_list, list_iter);
46 list_iter = m_entry_list.begin();
47 map_iter->second = list_iter;
48 }
49
50 return &(list_iter->second);
51 }
52
53 T& add_entry(Key const &p_key, T const & p_value)
54 {

Callers 1

get_image_handle_atMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected