This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Single lookup for try_emplace and insert_or_assign (#116)
Found by @GilesBathgate who provided a POC in #114. Thanks! Now try_emplace and isnert_or_assign don't require two lookups. This implementation reuses the same insertion code for insert() and emplace(). Also fixes a bug for emplace() where a node was not destroyed when overflow exception occured.
- Loading branch information