Namespaces
Variants
Views
Actions

std::swap(std::basic_stacktrace)

From cppreference.com
< cpp‎ | utility‎ | basic stacktrace
Revision as of 23:07, 13 October 2023 by Andreas Krug (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
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);.

Contents

[edit] Parameters

lhs, rhs - stacktraces whose contents to swap

[edit] Return value

(none)

[edit] Complexity

Constant.

[edit] Example

[edit] See also

swaps the contents
(public member function) [edit]