→
↓
⚡
🧠
📜
MyClass* p = new MyClass(); delete p;
auto p = std::make_unique<MyClass>();
for(iterator it = v.begin()...)
for(int val : v)
std::map<...>::iterator it = ...
auto it = ...
⚡
🧠
📜
MyClass* p = new MyClass(); delete p;
auto p = std::make_unique<MyClass>();
for(iterator it = v.begin()...)
for(int val : v)
std::map<...>::iterator it = ...
auto it = ...