Namespaces
Variants

std:: swap (std::basic_stacktrace)

From cppreference.net
Definiert im Header <stacktrace>
template < class Allocator >

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

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

Spezialisiert den std::swap -Algorithmus für std::basic_stacktrace . Tauscht die Inhalte von lhs und rhs . Entspricht lhs. swap ( rhs ) ; .

Inhaltsverzeichnis

Parameter

lhs, rhs - Stacktraces, deren Inhalte ausgetauscht werden sollen

Rückgabewert

(keine)

Komplexität

Konstante.

Beispiel

Siehe auch

tauscht die Inhalte aus
(öffentliche Elementfunktion)