MCPcopy Create free account
hub / github.com/Tessil/ordered-map / erase

Method erase

include/tsl/ordered_map.h:344–344  ·  view source on GitHub ↗

* When erasing an element, the insert order will be preserved and no holes * will be present in the container returned by 'values_container()'. * * The method is in O(bucket_count()), if the order is not important * 'unordered_erase(...)' method is faster with an O(1) average complexity. */

Source from the content-addressed store, hash-verified

342 * 'unordered_erase(...)' method is faster with an O(1) average complexity.
343 */
344 iterator erase(iterator pos) { return m_ht.erase(pos); }
345
346 /**
347 * @copydoc erase(iterator pos)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected