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

Function FindIfPtr

util/generic/algorithm.h:182–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180// FindIfPtr - return NULL if not found. Works for arrays, containers, iterators
181template <class I, class P>
182constexpr auto FindIfPtr(I f, I l, P pred) -> decltype(&*f) {
183 I found = FindIf(f, l, pred);
184 return (found != l) ? &*found : nullptr;
185}
186
187template <class C, class P>
188constexpr auto FindIfPtr(C&& c, P pred) {

Callers 4

TryFromStringFullScanMethod · 0.85
ToStringBufFullScanMethod · 0.85
operator==Method · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 3

FindIfFunction · 0.85
beginFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected