#include <iostream>
using namespace std;
class MySingleClassInstance
{
public:
static MySingleClassInstance&& GetInstance()
{
static MySingleClassInstance instance;
return std::move(instance);
};
MySingleClassInstance(const MySingleClassInstance& other) = delete;
MySingleClassInstance() noexcept = default;
MySingleClassInstance(MySingleClassInstance&& other) noexcept = default;
MySingleClassInstance& operator=(const MySingleClassInstance& other) = delete;
MySingleClassInstance& operator=(MySingleClassInstance&& other) noexcept = default;
};
int main() {
auto instance = MySingleClassInstance::GetInstance();
return 0;
}