std::basic_fstream<CharT,Traits>::swap (3) - Linux Manuals
std::basic_fstream<CharT,Traits>::swap: std::basic_fstream<CharT,Traits>::swap
Command to display std::basic_fstream<CharT,Traits>::swap
manual in Linux: $ man 3 std::basic_fstream<CharT,Traits>::swap
NAME
std::basic_fstream<CharT,Traits>::swap - std::basic_fstream<CharT,Traits>::swap
Synopsis
void swap( basic_fstream& other ); (since C++11)
Exchanges the state of the stream with those of other.
This is done by calling basic_iostream<CharT, Traits>::swap(other) and rdbuf()->swap(other.rdbuf()).
Parameters
other - stream to exchange the state with
Return value
(none)
Example
This section is incomplete
Reason: no example
See also
operator= moves the file stream
(public member function)
(C++11)
swap swaps two basic_filebuf objects
(public member function of std::basic_filebuf<CharT,Traits>)
(C++11)
Pages related to std::basic_fstream<CharT,Traits>::swap
- std::basic_fstream<CharT,Traits>::basic_fstream (3) - std::basic_fstream<CharT,Traits>::basic_fstream
- std::basic_fstream<CharT,Traits>::close (3) - std::basic_fstream<CharT,Traits>::close
- std::basic_fstream<CharT,Traits>::is_open (3) - std::basic_fstream<CharT,Traits>::is_open
- std::basic_fstream<CharT,Traits>::open (3) - std::basic_fstream<CharT,Traits>::open
- std::basic_fstream<CharT,Traits>::operator= (3) - std::basic_fstream<CharT,Traits>::operator=
- std::basic_fstream<CharT,Traits>::rdbuf (3) - std::basic_fstream<CharT,Traits>::rdbuf
- std::basic_fstream (3) - std::basic_fstream
- std::basic_filebuf (3) - std::basic_filebuf
- std::basic_filebuf<CharT,Traits>::basic_filebuf (3) - std::basic_filebuf<CharT,Traits>::basic_filebuf
- std::basic_filebuf<CharT,Traits>::close (3) - std::basic_filebuf<CharT,Traits>::close
- std::basic_filebuf<CharT,Traits>::imbue (3) - std::basic_filebuf<CharT,Traits>::imbue
- std::basic_filebuf<CharT,Traits>::is_open (3) - std::basic_filebuf<CharT,Traits>::is_open
- std::basic_filebuf<CharT,Traits>::open (3) - std::basic_filebuf<CharT,Traits>::open
- std::basic_filebuf<CharT,Traits>::operator= (3) - std::basic_filebuf<CharT,Traits>::operator=
- std::basic_filebuf<CharT,Traits>::overflow (3) - std::basic_filebuf<CharT,Traits>::overflow
- std::basic_filebuf<CharT,Traits>::pbackfail (3) - std::basic_filebuf<CharT,Traits>::pbackfail