MCPcopy Create free account
hub / github.com/catboost/catboost / Value

Method Value

util/generic/mapfindptr.h:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43 template <class K, class DefaultValue>
44 inline auto Value(const K& key, DefaultValue&& defaultValue) const {
45 auto found = FindPtr(key);
46 return found ? *found : std::forward<DefaultValue>(defaultValue);
47 }
48
49 template <class K, class V>
50 inline const V& ValueRef(const K& key, V& defaultValue Y_LIFETIME_BOUND) const Y_LIFETIME_BOUND {

Callers 2

TBasicStringFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 1

FindPtrFunction · 0.85

Tested by

no test coverage detected