I would like to better understand the use of the operator && in the example below with std::string
Code:
#include <iostream>
using namespace std;
const std::string GetEditTxtAccount()
{
std::string str = "Hello";
return str;
}
int main()
{
const string&& x = GetEditTxtAccount();
^^^
}
so why did we used the operator &&
in the main?
Thank you.