-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cleanups for <deque>
part 1
#4016
Conversation
B. like `insert(where,T&&)`, `insert(where,const&)` should use `emplace`
7d274cd
to
8e18127
Compare
Thanks! The fine-grained commits, combined with VSCode's new ability to identify moved code, made this easy to review. Everything looks good and I didn't find any leftover redundant access specifiers. |
Despite the magnitude of the edits, the well-structured fine-grained commits made this very easy to review, and I am confident that we don't need a second maintainer approval. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for making |
Contents of this pr:
trivial relocations XXX
: The definition order ofdeque
's methods was highly chaotic; reorder them to roughly match with the standard.A&B
: some minor cleanups for push/insert functionsC
: Let_Construct[_n]
do proxy allocation to save some lines.moved to pr 4017D
: The usage of_Allocate_at_least_helper
in_Growmap
was problematic, as it can make_Mapsize()
not power of 2 if_Allocate_at_least_helper
changes_Newsize
; restore to the old version.