1#include <iostream>
2class Entity {
3public:
4 int b = 0;
5 Entity() { std::cout << "[CREATED ENTITY]" << std::endl; };
6 ~Entity() { std::cout << "[Destroyed ENTITY]" << std::endl; };
7 void Print() {};
8};
9int main()
10{
11
12 {
13 std::unique_ptr<Entity> entity = std::make_unique<Entity>();
14 //std::unique_ptr<Entity> entity1 = entity;//can't copy
15
16 entity->Print();
17
18 }
19
20}