#include <iostream>
#include <memory>
class Printer
{
public:
void print(std::string text)
{
std::cout << text << std::endl;
}
};
int main()
{
auto printer1 = std::make_unique<Printer>();
std::unique_ptr<Printer> printer2 = std::move(printer1);
if (printer1 == nullptr) {
printer1->print("Printer1 is null!");
}
return 0;
}