MCPcopy Create free account
hub / github.com/Singular/Singular / get

Method get

ppcc/adlib/map.h:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299
300template <typename K, typename V>
301V Map<K, V>::get(K key, V if_absent) {
302 V result;
303 if (find(key, result))
304 return result;
305 else
306 return if_absent;
307}
308
309template <typename K, typename V>
310V Map<K, V>::get(K key) {

Callers 2

MainFunction · 0.45
InternFunction · 0.45

Calls 1

findFunction · 0.85

Tested by 1

MainFunction · 0.36