std::basic_stacktrace<Allocator>::swap
From cppreference.com
< cpp | utility | basic stacktrace
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Diagnostics library
(until C++20*)
(C++17)(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Exception handling failures
(C++11)
(until C++17*)
(until C++17*)
(until C++17*)
(until C++17*)
(TM TS)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++26)
(C++26)
(C++26)
std::basic_stacktrace
basic_stacktrace::swap
void swap( basic_stacktrace& other ) noexcept(/* see below */);
(since C++23)
Exchanges the contents of the container with those of other
. Does not invoke any move, copy, or swap operations on individual stacktrace_entry
objects.
All iterators and references remain valid. The end()
iterator is invalidated.
If std::allocator_traits <allocator_type>::propagate_on_container_swap::value is true, then the allocators are exchanged using an unqualified call to non-member swap
. Otherwise, they are not swapped (and if get_allocator() != other.get_allocator(), the behavior is undefined).
[edit] Parameters
other
-
basic_stacktrace
to exchange the contents with
[edit] Return value
(none)
[edit] Exceptions
noexcept specification:
noexcept(std::allocator_traits <Allocator>::propagate_on_container_swap::value
|| std::allocator_traits <Allocator>::is_always_equal::value)
|| std::allocator_traits <Allocator>::is_always_equal::value)
[edit] Complexity
Constant.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example