Why prefer std::make_unique over new in std::unique_ptr?
In modern C++, when you need a std::unique ptr , the idiomatic way to create it is: auto ptr = std :: make unique (); rather than manually new -ing the object inside the unique ptr constructor: std :: unique ptr ptr { new MyClass ()}; std::make unique was introduced in C++14 to f