basic_ofstream& operator=(basic_ofstream&& rhs);
void swap(basic_ofstream& rhs);
Effects: Меняет состояние *this и rhs по вызову basic_ostream<charT, traits>::swap(rhs) и sb.swap(rhs.sb).
template <class charT, class traits>
void swap(basic_ofstream<charT, traits>& x,
basic_ofstream<charT, traits>& y);