std::swap(std::basic_stacktrace)

From cppreference.com
 
 
Diagnostics library
Exception handling
Exception handling failures
(until C++17*)
(until C++17*)
(C++11)(until C++17*)    
(until C++17*)
Error codes
Error codes
 
 
Defined in header <stacktrace>
template< class Allocator >

void swap( std::basic_stacktrace<Allocator>& lhs, std::basic_stacktrace<Allocator>& rhs )

    noexcept(noexcept(lhs.swap(rhs)));
(since C++23)

Specializes the std::swap algorithm for std::basic_stacktrace. Swaps the contents of lhs and rhs. Equivalent to lhs.swap(rhs);.

Parameters

lhs, rhs - stacktraces whose contents to swap

Return value

(none)

Complexity

Constant.

Example

See also

(C++23)
swaps the contents
(public member function)