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

# FEAT: add concurrent_hash_map::try_emplace method #1027

Open

Description

@igchor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureNew feature or requestnewneed to be triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions