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

Function FindPtr

util/generic/algorithm.h:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129// FindPtr - return NULL if not found. Works for arrays, containers, iterators
130template <class I, class T>
131constexpr auto FindPtr(I f, I l, const T& v) -> decltype(&*f) {
132 I found = Find(f, l, v);
133 return (found != l) ? &*found : nullptr;
134}
135
136template <class C, class T>
137constexpr auto FindPtr(C&& c, const T& v) {

Callers 3

ValueMethod · 0.85
TMapOpsClass · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 3

FindFunction · 0.70
beginFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected