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.
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.