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

Function Find

util/string/split.h:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39 template <class T>
40 T* Find(T* str, std::common_type_t<T> ch) {
41 for (; *str; ++str) {
42 if (*str == ch) {
43 return str;
44 }
45 }
46
47 return nullptr;
48 }
49
50} // namespace NStringSplitPrivate
51

Callers 3

FastStrChrFunction · 0.70
FindFirstOfMethod · 0.70
Y_UNIT_TESTFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected