Created
February 24, 2021 01:13
-
-
Save andy-landy/50e337f21a6dab9c94785909803a22c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Is it OK to declare a function | |
... f(Value value) { ... | |
instead of two functions | |
... f(const Value& value) { ... | |
... f(Value &&value) { ... | |
if Value has a move constructor Value(Value&& value)? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment