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

Function GetDataFromMap

catboost/libs/data/target.h:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260 template <class TData, class TMapType>
261 inline TMaybeData<TData> GetDataFromMap(const TMapType& map, const typename TMapType::key_type& key) {
262 const auto dataPtr = MapFindPtr(map, key);
263 if (dataPtr) {
264 return **dataPtr;
265 }
266 return Nothing();
267 }
268
269
270 class TTargetDataProvider : public TThrRefBase {

Callers

nothing calls this directly

Calls 2

MapFindPtrFunction · 0.85
NothingFunction · 0.85

Tested by

no test coverage detected