Created
June 4, 2019 12:46
-
-
Save aabdelfattah/cfedff80a2ad96478a293e914b18830d to your computer and use it in GitHub Desktop.
returning rvalue
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
string getName() { | |
string str = "medium"; | |
return s; | |
} | |
// getName() returns an rvalue | |
string&& name = getName(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment