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

Function IsInSet

library/cpp/netliba/v6/udp_socket.cpp:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89 template <class T, class TElem>
90 inline bool IsInSet(const T& c, const TElem& e) {
91 return Find(c.begin(), c.end(), e) != c.end();
92 }
93
94 bool IsLocalIPv4(ui32 ip) {
95 return IsInSet(LocalHostIPList[IPv4], ip);

Callers 2

IsLocalIPv4Function · 0.70
IsLocalIPv6Function · 0.70

Calls 3

FindFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected