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

Apply std::move to predicate/comparator-like entities #1813

Open
dmitriy-sobolev opened this issue Sep 1, 2024 · 1 comment
Open

Apply std::move to predicate/comparator-like entities #1813

dmitriy-sobolev opened this issue Sep 1, 2024 · 1 comment

Comments

@dmitriy-sobolev
Copy link
Contributor

I guess, even without having capture list we could benefit from using std::move(__comp) and std::move(__proj).

Originally posted by @rarutyun in #1471 (comment)

@akukanov
Copy link
Contributor

akukanov commented Sep 7, 2024

Are not the predicates, comparators etc. in modern C++supposed to be very lightweight objects passed by values? What benefits of moving those are expected, especially "even without having capture list"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants