-
-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use push_back instead of emplace_back
Since we can't have the performance improvements provided by emplace_back and its construct-in-place mechanism without adding a lot of code (constructors for the struct), just use push_back to emphasize the fact that we are constructing the objects then putting them into the list. This is fine though, we don't actually need performance in this case.
- Loading branch information
1 parent
63e7ce2
commit 35e0245
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters