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

Function Ip4Or6ToString

util/draft/ip.h:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static inline TString Ip4Or6ToString(const TIp4Or6& ip) {
110 if (std::holds_alternative<TIp6>(ip)) {
111 return Ip6ToString(std::get<TIp6>(ip));
112 } else {
113 return IpToString(std::get<TIp4>(ip));
114 }
115}
116
117// for TIp4 or TIp6, not TIp4Or6
118template <class TIp>

Callers

nothing calls this directly

Calls 2

Ip6ToStringFunction · 0.85
IpToStringFunction · 0.85

Tested by

no test coverage detected