Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

# FEAT: add concurrent_hash_map::try_emplace method #1027

Open
igchor opened this issue Feb 4, 2021 · 0 comments
Open

# FEAT: add concurrent_hash_map::try_emplace method #1027

igchor opened this issue Feb 4, 2021 · 0 comments
Labels
new need to be triaged Type: Feature New feature or request

Comments

@igchor
Copy link
Contributor

igchor commented Feb 4, 2021

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
try_emplace(accessor, K&& k, Args&&... args);

Implementation details

Meta

@igchor igchor added the Type: Feature New feature or request label Feb 4, 2021
@lukaszstolarczuk lukaszstolarczuk added the new need to be triaged label Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new need to be triaged Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants