Namespaces
Variants

std:: swap (std::basic_stringbuf)

From cppreference.net
Definiert im Header <sstream>
template < class CharT, class Traits, class Alloc >

void swap ( std:: basic_stringbuf < CharT,Traits,Alloc > & lhs,

std:: basic_stringbuf < CharT,Traits,Alloc > & rhs ) ;
(seit C++11)
(bis C++20)
template < class CharT, class Traits, class Alloc >

void swap ( std:: basic_stringbuf < CharT,Traits,Alloc > & lhs,
std:: basic_stringbuf < CharT,Traits,Alloc > & rhs )

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

Überlädt den std::swap -Algorithmus für std::basic_stringbuf . Tauscht den Zustand von lhs mit dem von rhs . Ruft effektiv lhs. swap ( rhs ) auf.

Inhaltsverzeichnis

Parameter

lhs, rhs - std::basic_stringbuf Objekte, deren Zustände ausgetauscht werden sollen

Rückgabewert

(keine)

Beispiel

Siehe auch

(C++11)
tauscht zwei basic_stringbuf Objekte aus
(öffentliche Elementfunktion)
tauscht die Werte zweier Objekte
(Funktionstemplate)