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

Method Insert

library/cpp/netliba/v12/udp_host.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 return ConnectionHash.FindPtr(guid);
110 }
111 const std::pair<iterator, bool> Insert(const TGUID& guid, TConnection* conn) {
112 const std::pair<iterator, bool>& rv = ConnectionHash.insert(std::make_pair(guid, conn));
113 if (!rv.second && rv.first == CachedPos) {
114 CacheResetNum++;
115 CachedPos = ConnectionHash.begin();
116 }
117 return rv;
118 }
119 TIntrusivePtr<IConnection>& operator[](const TGUID& guid) {
120 return (*((Insert(guid, TIntrusivePtr<TConnection>().Get())).first)).second;
121 }

Callers 1

ConnectLowMethod · 0.45

Calls 2

insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected