Skip to content

Conversation

@Chillee
Copy link
Collaborator

@Chillee Chillee commented May 5, 2019

begin(x) is a strict superset of what x.begin() can do.

See https://stackoverflow.com/questions/26290316/difference-between-vectorbegin-and-stdbegin

I realize that KACTL almost never uses C-style arrays, but we also save 2 characters from this :^)

@simonlindholm
Copy link
Member

Sounds good. Only reason I could see not to is if there are local begin/end variables that shadow the functions.

@simonlindholm simonlindholm merged commit 9b21ef1 into kth-competitive-programming:master May 5, 2019
hockyy pushed a commit to hockyy/kactl that referenced this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants