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

Use constant references for iteration #140

Open
makaimann opened this issue Dec 20, 2020 · 1 comment
Open

Use constant references for iteration #140

makaimann opened this issue Dec 20, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@makaimann
Copy link
Collaborator

When iterating over a data structure, we should use const auto & if the variable can be const.

@makaimann makaimann added the enhancement New feature or request label Dec 20, 2020
@makaimann makaimann self-assigned this Dec 20, 2020
@makaimann
Copy link
Collaborator Author

makaimann commented Dec 20, 2020

Curious to get thoughts on this @ahmed-irfan and @lonsing? Does this make sense to you both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant