libpmemobj-cpp
libpmemobj-cpp copied to clipboard
# FEAT: add concurrent_hash_map::try_emplace method
FEAT: add concurrent_hash_map::try_emplace method
Rationale
Currently we have no way of putting new element without creating a temporary (apart from insert_or_assign).
Description
API Changes
try_emplace(accessor, const key_type& k, Args&&... args); try_emplace(accessor, key_type&& k, Args&&... args); template <typename K> try_emplace(accessor, K&& k, Args&&... args);