MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Insert

Method Insert

tensorflow/core/lib/gtl/flatset.h:281–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279
280 template <typename K>
281 std::pair<iterator, bool> Insert(K&& k) {
282 rep_.MaybeResize();
283 auto r = rep_.FindOrInsert(std::forward<K>(k));
284 const bool inserted = !r.found;
285 return {iterator(r.b, rep_.limit(), r.index), inserted};
286 }
287
288 Rep rep_;
289};

Callers

nothing calls this directly

Calls 4

MaybeResizeMethod · 0.80
FindOrInsertMethod · 0.80
iteratorClass · 0.70
limitMethod · 0.45

Tested by

no test coverage detected