Skip to content

Conversation

@beliefer
Copy link
Contributor

@beliefer beliefer commented Nov 7, 2025

This PR proposes to use const_iterator first.
When I read the source code, I want know whether the code modify the iterator.
cbegin and cend could tell developers that the underlying code will not change the iterator. But begin and end not tell me more. I must understand the function (e.g. std::sort) and know the fact.
I think this PR could help Velox to improve the readability.

@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 609b7f5
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/690dab59850d490008a9af62

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 7, 2025
@beliefer beliefer force-pushed the using_const_iterator_first branch from e171ba7 to e3bb010 Compare November 7, 2025 07:42
@beliefer beliefer force-pushed the using_const_iterator_first branch from e3bb010 to 609b7f5 Compare November 7, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant