std::unique_ptr is a smart pointer that retains sole ownership of an object through a pointer.
Does std::make_unique have any efficiency benefits like std::make_shared? Compared to manually constructing std::unique_ptr: std::…
c++ c++11 c++14 smart-pointers unique-ptrI am having my first attempt at using C++11 unique_ptr; I am replacing a polymorphic raw pointer inside a …
c++ c++11 unique-ptrI'm using the pimpl-idiom with std::unique_ptr: class window { window(const rectangle& rect); private: class window_impl; // defined …
c++ unique-ptr incomplete-type libc++I guess it's pretty self explanatory - I can't seem to use C++11 features, even though I think I have …
c++ c++11 g++ unique-ptrGiven the common situation where the lifespan of an owned object is linked to its owner, I can use a …
c++ c++11 smart-pointers unique-ptrstd::unique_ptr<int> p1(new int); std::unique_ptr<int> p2(new int); p2=p1; …
c++ c++11 unique-ptrThis code is what I want to do: Tony& Movie::addTony() { Tony *newTony = new Tony; std::unique_ptr<…
c++ unique-ptrI have some code in a header that looks like this: #include <memory> class Thing; class MyClass { std::…
c++ visual-studio-2010 c++11 stl unique-ptrWill auto_ptr be deprecated in incoming C++ standard? Should unique_ptr be used for ownership transfer instead of shared_…
c++ standards smart-pointers auto-ptr unique-ptrMy compiler doesn't support make_unique. How to write one? template< class T, class... Args > unique_ptr<…
c++ c++11 unique-ptr c++14