Описание тега scoped-ptr
A smart pointer provided by Boost that owns a dynamically-allocated pointer and cannot be copied or moved, retaining ownership of the pointer in its scope.
The Boost Smart Pointers library provides the class template boost::scoped_ptr
, a smart pointer with non-transferable single-ownership semantics.
scoped_ptr
is not in the C++ Standard Library, but const std::unique_ptr
is a better replacement for scoped_ptr
and scoped_array
.