<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