<sstream> swap

交换两个 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
    );

参数

参数

说明

_Left

sstream 对象的引用。

_Right

sstream 对象的引用。

备注

模板执行函数 _Left.swap(_Right)。

要求

页眉: <sstream>

命名空间: std

请参见

参考

<sstream>

iostream 编程

iostreams 约定