#include <iostream>
using namespace std;
class Foo
{
public:
void bar() &
{
cout << "L" << endl;
}
void bar() &&
{
cout << "R" << endl;
}
};
int main()
{
Foo f;
f.bar();
std::move(f).bar();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIEZvbwp7CnB1YmxpYzoKICAgIHZvaWQgYmFyKCkgJgogICAgewogICAgICAgIGNvdXQgPDwgIkwiIDw8IGVuZGw7CiAgICB9CiAgICAKICAgIHZvaWQgYmFyKCkgJiYKICAgIHsKICAgICAgICBjb3V0IDw8ICJSIiA8PCBlbmRsOwogICAgfQp9OwoKaW50IG1haW4oKQp7CiAgICBGb28gZjsKICAgIGYuYmFyKCk7CiAgICBzdGQ6Om1vdmUoZikuYmFyKCk7CiAgICAKICAgIHJldHVybiAwOwp9