MCPcopy Create free account
hub / github.com/arkdb/inception / insert_unique

Method insert_unique

include/prealloced_array.h:285–292  ·  view source on GitHub ↗

Similar to std::set<>::insert() Extends the array by inserting a new element, but only if it cannot be found in the array already. Assumes that the array is sorted with std::less Insertion using this function will maintain order. @retval A pair, with its member pair::first set an iterator pointing to either the newly inserted element, or to the equiv

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

find_matchesFunction · 0.80
add_if_missingFunction · 0.80

Calls 2

make_pairFunction · 0.85
insertFunction · 0.85

Tested by

no test coverage detected