basic_stacktrace& operator=( const basic_stacktrace& other );
basic_stacktrace& operator=( basic_stacktrace&& other )
noexcept(/* see below */);
Replaces the contents of the
other. If the allocator of *this after assignment would compare unequal to its old value, the old allocator is used to deallocate the memory, then the new allocator is used to allocate it before copying the entries. Otherwise, the memory owned by *this may be reused when possible.
otherusing move semantics (i.e. the data in
otheris moved from
otheris in a valid but unspecified state afterwards.
other. If it is false and the allocators of *this and
otherdo not compare equal, *this cannot take ownership of the memory owned by
otherand must assign each entries individually, allocating additional memory using its own allocator as needed.
In any case, the stacktrace entries originally belong to *this may be either destroyed or replaced by element-wise assignment.
*this may be set to empty on allocation failure if the implementation strengthens the exception specification.
|other||-|| another |
 Return value
*thisunless the allocators do not compare equal and do not propagate, in which case linear in the size of
After container move assignment (overload (2)), unless element-wise move assignment is forced by incompatible allocators, references, pointers, and iterators (other than the end iterator) to
other remain valid, but refer to elements that are now in *this. The current standard makes this guarantee via the blanket statement in [container.requirements.general]/12, and a more direct guarantee is under consideration via LWG 2321.
|This section is incomplete|
Reason: no example
 See also
| creates a new |
(public member function)