August 2017
Intermediate to advanced
438 pages
14h 19m
English
The scoped_array<> class has same guarantees and design as scoped_ptr<>. It has neither additional memory allocations nor virtual function's call. It cannot be copied and also is not a part of C++11. std::unique_ptr<T[]> is part of the C++11 and has the same guarantees and performance as the boost::movelib::unique_ptr<T[]> class.
Note that Boost version could also work on pre-C++11 compilers and even emulates rvalues on them, making boost::movelib::unique_ptr a move ...
Read now
Unlock full access