Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.15 KB

sstream-functions.md

File metadata and controls

52 lines (38 loc) · 1.15 KB
description title ms.date f1_keywords ms.assetid
Learn more about: <sstream> functions
<sstream> functions
11/04/2016
sstream/std::swap
bc9607e8-7c6b-44ef-949b-19e917b450ad

<sstream> functions

swap

swap

Exchanges the values between two sstream objects.

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);

Parameters

left
Reference to an sstream object.

right
Reference to an sstream object.

Remarks

The template function executes left.swap(right).

See also

<sstream>