-
Notifications
You must be signed in to change notification settings - Fork 24.4k
emplace(key, value) rather than emplace(std::make_pair(key, value)); #81614
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
Conversation
Hi @guodongxiaren! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
🔗 Helpful links
✅ No Failures (0 Pending)As of commit e1f82ce (more details on the Dr. CI page): Expand to see moreCommit e1f82ce was recently pushed. Waiting for builds... This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
please review this pull request. Thanks. @rohan-varma @BowenBao @pritamdamania @H-Huang @mrshenli @awgu @shubhambhokare1 @mingzhe09088 @zhaojuanmao |
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
/easycla As part of the transition to the PyTorch Foundation, this project now requires contributions be covered under the new CLA. See #85559 for additional details. This comment will trigger a new check of this PR. If you are already covered, you will simply see a new "EasyCLA" check that passes. If you are not covered, a bot will leave a new comment with a link to sign. |
|
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/81614
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit 945590d: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Please approving workflow runs from my forks. Thanks. @rohan-varma @BowenBao @pritamdamania @H-Huang @mrshenli @awgu @zhaojuanmao |
emplace(key, value) is better than emplace(std::make_pair(key, value));
Reference:
Effective modern C++ item 42: Consider emplacement instead of insertion.