Files
2025-10-25 03:02:53 +03:00

931 B
Raw Permalink Blame History

[ifstream.swap]

31 Input/output library [input.output]

31.10 File-based streams [file.streams]

31.10.4 Class template basic_ifstream [ifstream]

31.10.4.3 Swap [ifstream.swap]

🔗

void swap(basic_ifstream& rhs);

1

#

Effects: Exchanges the state of this and rhs by callingbasic_istream<charT, traits>::swap(rhs) andsb*.swap(rhs.sb).

🔗

template<class charT, class traits> void swap(basic_ifstream<charT, traits>& x, basic_ifstream<charT, traits>& y);

2

#

Effects: Equivalent to x.swap(y).