libstdc++
|
Public Types | |
typedef basic_filebuf< char_type, traits_type > | __filebuf_type |
typedef basic_ios< char_type, traits_type > | __ios_type |
typedef basic_iostream< char_type, traits_type > | __iostream_type |
typedef basic_istream< _CharT, _Traits > | __istream_type |
typedef basic_ostream< _CharT, _Traits > | __ostream_type |
typedef _CharT | char_type |
typedef traits_type::int_type | int_type |
typedef traits_type::off_type | off_type |
typedef traits_type::pos_type | pos_type |
typedef _Traits | traits_type |
Public Member Functions | |
basic_fstream () | |
basic_fstream (basic_fstream &&__rhs) | |
template<typename _Path , typename _Require = _If_fs_path<_Path>> | |
basic_fstream (const _Path &__s, ios_base::openmode __mode=ios_base::in|ios_base::out) | |
basic_fstream (const basic_fstream &)=delete | |
basic_fstream (const char *__s, ios_base::openmode __mode=ios_base::in|ios_base::out) | |
basic_fstream (const std::string &__s, ios_base::openmode __mode=ios_base::in|ios_base::out) | |
~basic_fstream () | |
void | close () |
bool | is_open () |
bool | is_open () const |
template<typename _Path > | |
_If_fs_path< _Path, void > | open (const _Path &__s, ios_base::openmode __mode=ios_base::in|ios_base::out) |
void | open (const char *__s, ios_base::openmode __mode=ios_base::in|ios_base::out) |
void | open (const std::string &__s, ios_base::openmode __mode=ios_base::in|ios_base::out) |
basic_fstream & | operator= (basic_fstream &&__rhs) |
basic_fstream & | operator= (const basic_fstream &)=delete |
__filebuf_type * | rdbuf () const |
void | swap (basic_fstream &__rhs) |
Protected Member Functions | |
void | swap (basic_iostream &__rhs) |
Controlling input and output for files.
_CharT | Type of character stream. |
_Traits | Traits for character type, defaults to char_traits<_CharT>. |
This class supports reading from and writing to named files, using the inherited functions from std::basic_iostream. To control the associated sequence, an instance of std::basic_filebuf is used, which this page refers to as sb
.
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |