std::basic_stacktrace<Allocator>:: operator=
basic_stacktrace
&
operator
=
(
const
basic_stacktrace
&
other
)
;
|
(1) | (since C++23) |
basic_stacktrace
&
operator
=
(
basic_stacktrace
&&
other
)
noexcept ( /* see below */ ) ; |
(2) | (since C++23) |
Replaces the contents of the
basic_stacktrace
.
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.
Parameters
other | - |
another
basic_stacktrace
to use as source
|
Return value
* this
Complexity
Exceptions
|| std:: allocator_traits < Allocator > :: is_always_equal :: value )
Notes
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.reqmts]/67
, and a more direct guarantee is under consideration via
LWG issue 2321
.
Example
This section is incomplete
Reason: no example |
See also
creates a new
basic_stacktrace
(public member function) |