|
|
void swap( basic_stacktrace& other)noexcept(/* see below */); | (since C++23) | |
Exchanges the contents of the container with those ofother
. Does not invoke any move, copy, or swap operations on individualstacktrace_entry
objects.
All iterators and references remain valid. Theend()
iterator is invalidated.
Ifstd::allocator_traits<allocator_type>::propagate_on_container_swap::value is true, then the allocators are exchanged using an unqualified call to non-memberswap
. Otherwise, they are not swapped (and ifget_allocator()!= other.get_allocator(), the behavior is undefined).
Contents |
other | - | basic_stacktrace to exchange the contents with |
(none)
Constant.
This section is incomplete Reason: no example |
specializes thestd::swap algorithm (function template)[edit] |