...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Move constructor.
storage_ptr(
storage_ptr
&& other) noexcept;
This function constructs a pointer that points to the same memory resource
as other
, with the same
ownership:
other
is non-owning,
then *this
will be be non-owning.
other
has shared
ownership, then ownership will be transferred to *this
.
After construction, other
will point to the default
memory resource.
Constant.
No-throw guarantee.
Name |
Description |
---|---|
|
The pointer to construct from. |