Partager via


fonctions<sstream>

L’en-tête <sstream> fournit les fonctions suivantes :

échanger

Échange les valeurs entre deux objets sstream.

template <class Elem, class Tr, class Alloc>
void swap(
    basic_stringbuf<Elem, Tr, Alloc>& left,
    basic_stringbuf<Elem, Tr, Alloc>& right);

template <class Elem, class Tr, class Alloc>
void swap(
    basic_istringstream<Elem, Tr, Alloc>& left,
    basic_istringstream<Elem, Tr, Alloc>& right);

template <class Elem, class Tr, class Alloc>
void swap(
    basic_ostringstream<Elem, Tr, Alloc>& left,
    basic_ostringstream<Elem, Tr, Alloc>& right);

template <class Elem, class Tr, class Alloc>
void swap(
    basic_stringstream<Elem, Tr, Alloc>& left,
    basic_stringstream<Elem, Tr, Alloc>& right);

Paramètres

gauche
Référence à un objet sstream.

Droite
Référence à un objet sstream.

Notes

La fonction de modèle exécute left.swap(right).

Voir aussi

<sstream>