namespace std {
template<class CharT, class Traits, class Allocator>
void swap(basic_stringbuf<CharT, Traits, Allocator>& x,
basic_stringbuf<CharT, Traits, Allocator>& y);
}
概要
2つのbasic_stringbuf
オブジェクトを入れ替える。
効果
x.swap(y)
例
出力
second
first
バージョン
言語
- C++11
処理系
- Clang: 3.0 ✅
- GCC: 5.1.0 ✅
- ICC: ??
- Visual C++: ??