![]() |
Home | Libraries | People | FAQ | More |
Constructor.
explicit string(string
&& other,storage_ptr
sp);
Construct the contents with those of other
using move semantics.
*other.storage() == *sp
,
ownership of the underlying memory is transferred in constant time,
with no possibility of exceptions. After construction, the moved-from
string behaves as if newly constructed with its current boost::container::pmr::memory_resource
. Otherwise,
*other.storage() != *sp
,
a copy of the characters in other
is made. In this case, the moved-from string is not changed.
Constant or linear in other.size()
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
Name |
Description |
---|---|
|
The string to assign from. |
|
An optional pointer to the |