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

Method Insert

tensorflow/compiler/jit/graphcycles/ordered_set.h:37–44  ·  view source on GitHub ↗

Inserts `value` into the ordered set. Returns true if the value was not present in the set before the insertion.

Source from the content-addressed store, hash-verified

35 // Inserts `value` into the ordered set. Returns true if the value was not
36 // present in the set before the insertion.
37 bool Insert(T value) {
38 bool new_insertion =
39 value_to_index_.insert({value, value_sequence_.size()}).second;
40 if (new_insertion) {
41 value_sequence_.push_back(value);
42 }
43 return new_insertion;
44 }
45
46 // Removes `value` from the set. Assumes `value` is already present in the
47 // set.

Callers 2

TESTFunction · 0.45
InsertEdgeMethod · 0.45

Calls 3

insertMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.36