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

Function MapFindPtr

util/generic/mapfindptr.h:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template <class Map, class K>
24inline auto MapFindPtr(const Map& map Y_LIFETIME_BOUND, const K& key) {
25 auto i = map.find(key);
26
27 return (i == map.end() ? nullptr : &i->second);
28}
29
30/** helper for THashMap/TMap */
31template <class Derived>

Callers 13

FindPositionByKeyMethod · 0.85
CollectLeavesStatisticsFunction · 0.85
IsClassifierModelFunction · 0.85
operator==Method · 0.85
CheckMethod · 0.85
GetDataFromMapFunction · 0.85
GetTargetClassCountMethod · 0.85
GetTargetMethod · 0.85
GetBaselineMethod · 0.85
TrainFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected