Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in unique-ptr

What is the scope of a unique_ptr returned from a function?

c++ unique-ptr

Using unique_ptr to control a file descriptor

Does passing a `unique_ptr` by value have a performance penalty compared to a plain pointer?

c++ unique-ptr overhead

Aligned dynamic array and smart pointer

Does std::bind work with move-only types in general, and std::unique_ptr in particular?

c++ c++11 bind unique-ptr

Temporary read-only copy of unique_ptr

std::make_unique<T> vs reset(new T)

c++ unique_ptr argument passing

Is it true that a unique_ptr declaration, unlike a auto_ptr declaration, is well-defined when its template type is of an incomplete type?

Printing unique_ptr to cout

What's the reasoning behind std::unique_ptr<T>'s constructor from T* being explicit?

std::unique_ptr<T[]> with an array of derived objects, use of deleted function

Take ownership of parameter by rvalue-reference

Is unique_ptr<Derived> to unique_ptr<Base> up-casting automatic?

Should `unique_ptr< T const [] >` accept a `T*` constructor argument?

c++ c++11 standards unique-ptr

Why does operator* of rvalue unique_ptr return an lvalue?

std::unique_ptr<T[]> API prohibits derived-to-base pointer conversions

strange error: use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr when no pointers really created

How to assign a value of a string to a std::unique_ptr<std::string>?

c++ string unique-ptr

Memory leak despite using unique_ptr

c++ memory-leaks unique-ptr