Skip to content

减少拷贝构造次数#20

Open
Mr-JingShi wants to merge 1 commit intoshixinzhang:masterfrom
Mr-JingShi:master
Open

减少拷贝构造次数#20
Mr-JingShi wants to merge 1 commit intoshixinzhang:masterfrom
Mr-JingShi:master

Conversation

@Mr-JingShi
Copy link

@Mr-JingShi Mr-JingShi commented Jun 27, 2024

(1)使用auto&明确指出要使用左值引用,减少不必要的拷贝构造。
(2)只用erase代替copy_records,减少不必要的构造。

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