libpmemobj-cpp icon indicating copy to clipboard operation
libpmemobj-cpp copied to clipboard

# FEAT: add concurrent_hash_map::try_emplace method

Open igchor opened this issue 4 years ago • 0 comments

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);

Implementation details

Meta

igchor avatar Feb 04 '21 12:02 igchor