Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::swap(std::basic_stacktrace)

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

NotebookLM
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

This section is incomplete
Reason: no example

See also

swaps the contents
(public member function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.