Namespaces
Variants

std:: swap (std::basic_stringstream)

From cppreference.net

Definiert im Header <sstream>
template < class CharT, class Traits, class Alloc >

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

std:: basic_stringstream < CharT,Traits,Alloc > & rhs ) ;
(seit C++11)

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

Inhaltsverzeichnis

Parameter

lhs, rhs - Streams, deren Zustand ausgetauscht werden soll

Rückgabewert

(keine)

Exceptions

Kann implementierungsdefinierte Ausnahmen auslösen.

Beispiel

Siehe auch

(C++11)
tauscht zwei String-Streams
(öffentliche Elementfunktion)