std::swap(std::basic_stringbuf)
来自cppreference.com
| 公开成员函数 | ||||
(C++11) | ||||
(C++11) | ||||
(C++20) | ||||
| 受保护成员函数 | ||||
| 非成员函数 | ||||
(C++11) | ||||
| 仅用于阐述的成员函数 | ||||
| 在标头 <sstream> 定义
|
||
template< class CharT, class Traits, class Alloc >
void swap( std::basic_stringbuf<CharT,Traits,Alloc>& lhs,
std::basic_stringbuf<CharT,Traits,Alloc>& rhs );
|
(C++11 起) (C++20 前) |
|
template< class CharT, class Traits, class Alloc >
void swap( std::basic_stringbuf<CharT,Traits,Alloc>& lhs,
std::basic_stringbuf<CharT,Traits,Alloc>& rhs )
noexcept(noexcept(lhs.swap(rhs)));
|
(C++20 起) | |
为 std::basic_stringbuf 重载 std::swap 算法。交换 lhs 与 rhs 的内部状态。相当于调用 lhs.swap(rhs)。
| lhs, rhs | - | 要交换状态的 std::basic_stringbuf 对象 |
(无)
| 本节未完成 原因:暂无示例 |
(C++11) |
交换两个 basic_stringbuf 对象 (公开成员函数) [编辑] |
| 交换两个对象的值 (函数模板) [编辑] |