29.9.4 Class template basic_Âofstream [ofstream]
void swap(basic_ofstream& rhs);
Effects:
Exchanges the state of
*this
and
rhs by calling
basic_Âostream<charT, traits>​::​swap(rhs) and
sb.swap(rhs.sb). template<class charT, class traits>
void swap(basic_ofstream<charT, traits>& x,
basic_ofstream<charT, traits>& y);
Effects:
Equivalent to:
x.swap(y).