Skip to content

Makes non-const iterator values mutable#55

Open
howsohazard wants to merge 1 commit into
Tessil:masterfrom
howsohazard:mutable-iterator-values
Open

Makes non-const iterator values mutable#55
howsohazard wants to merge 1 commit into
Tessil:masterfrom
howsohazard:mutable-iterator-values

Conversation

@howsohazard
Copy link
Copy Markdown

This allows for usage patterns like:

auto iter = map.find(key);
iter->second = new_value;

while respecting that const_iterator cannot update that value.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant