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

Method InsertImpl

library/cpp/containers/flat_hash/lib/table.h:251–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249public:
250 template <class T>
251 std::pair<iterator, bool> InsertImpl(T&& value) {
252 return TryCreate(KeyGetter::Apply(value), [&](size_type idx) {
253 Buckets_.InitNode(idx, std::forward<T>(value));
254 });
255 }
256
257 template <class T, class F>
258 Y_FORCE_INLINE std::pair<iterator, bool> TryCreate(const T& key, F nodeInit) {

Callers

nothing calls this directly

Calls 2

ApplyFunction · 0.50
InitNodeMethod · 0.45

Tested by

no test coverage detected