Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Unneeded code? #31

Open
zh820952173 opened this issue Jul 1, 2022 · 1 comment
Open

Is Unneeded code? #31

zh820952173 opened this issue Jul 1, 2022 · 1 comment

Comments

@zh820952173
Copy link

_cache_items_map.erase(it);
Is the line of code redundent?

@zh820952173
Copy link
Author

_cache_items_map[key] = _cache_items_list.begin(); Reference to the mapped value of the new element if no element with key key existed. Otherwise a reference to the mapped value of the existing element whose key is equivalent to key.

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

No branches or pull requests

1 participant