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

Replace insert with emplace #4712

Closed
wants to merge 1 commit into from

Conversation

githejie
Copy link
Contributor

Perhaps some compilers can optimize insert at compile time, but replacing insert with emplace can avoid unnecessary copy construction or move construction at the C++ syntax level.

To avoid unnecessary copy construction or move construction.
@githejie githejie force-pushed the replace_insert_with_emplace branch from c0a6f96 to 72d2bc9 Compare July 27, 2024 10:41
@githejie githejie closed this Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant