[ofstream.swap] (original) (raw)

31 Input/output library [input.output]

31.10 File-based streams [file.streams]

31.10.5 Class template basic_ofstream [ofstream]

31.10.5.3 Swap [ofstream.swap]

🔗

void swap(basic_ofstream& rhs);

1

#

Effects: Exchanges the state of *thisand rhs by callingbasic_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);

2

#

Effects: Equivalent to x.swap(y).