std::unique_ptr<MyObject> a = new MyObject(...);The new way
std::unique_ptr<MyObject> a = std::make_unique(MyObject(...));As you can see, it creates a unique_ptr to your object. More Info http://www.google.com/search?q=std::make_unique+examples
std::unique_ptr<MyObject> a = new MyObject(...);The new way
std::unique_ptr<MyObject> a = std::make_unique(MyObject(...));As you can see, it creates a unique_ptr to your object. More Info http://www.google.com/search?q=std::make_unique+examples