...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.
object( object&& other, storage_ptr sp);
The object is constructed with the contents of other
by move semantics, using the specified memory resource:
*other.storage() == *sp
,
ownership of the underlying memory is transferred in constant time,
with no possibility of exceptions. After construction, the moved-from
object behaves as if newly constructed with its current storage pointer.
*other.storage() != *sp
,
an element-wise copy is performed, which may throw. In this case,
the moved-from object is not changed.
Constant or linear in other.size()
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
Name |
Description |
---|---|
|
The object to move. |
|
A pointer to the |