Page MenuHomeFeedback Tracker

Add map<T>::TryRemove
Closed, ResolvedPublic

Description

For the sake of convenience, there should be a remove variant that returns true and the element in the map if it could be removed. So that its one line to "take out" an item from a map.

proto bool TryRemove(TKey key, out TValue val);

Details

Severity
Tweak
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.May 1 2023, 4:57 PM
Geez changed the task status from New to Reviewed.May 3 2023, 10:51 AM
Geez changed the task status from Reviewed to Assigned.May 3 2023, 2:34 PM
Geez closed this task as Resolved.Jun 12 2023, 11:11 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Resolved in one of the future updates.