std::swap(std::basic_stringbuf)
STD::交换%28 std::basic[医]特兰布夫%29
template< class CharT, class Traits, class Alloc > void swap( std::basic_stringbuf | | (since C++11) |
---|
重载std::swap
算法std::basic_stringbuf
.交换lhs
与...rhs
.有效地打电话lhs.swap(rhs)
...
参数
lhs, rhs | - | std::basic_stringbuf objects whose states to swap |
---|
返回值
%280%29
例
另见
swap (C++11) | swaps two basic_stringbuf objects (public member function) |
---|---|
swap | swaps the values of two objects (function template) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。