- fstream[meta header]
- std[meta namespace]
- class template[meta id-type]
namespace std {
template <class CharT, class Traits = char_traits<CharT>>
class basic_ofstream : public basic_ostream<CharT, Traits>;
using ofstream = basic_ofstream<char>;
using wofstream = basic_ofstream<wchar_t>;
}
- char_traits[link /reference/string/char_traits.md]
- basic_ostream[link /reference/ostream/basic_ostream.md]
少なくとも書き込み操作のできるファイルストリーム
名前 | 説明 | 対応バージョン |
---|---|---|
(constructor) | コンストラクタ | |
(destructor) | デストラクタ | |
operator= |
ムーブ代入 | C++11 |
swap |
値の交換 | C++11 |
rdbuf |
ストリームバッファオブジェクトの取得 | |
is_open |
ファイルを開いているかの判定 | |
open |
ファイルを開く | |
close |
ファイルを閉じる |
名前 | 説明 | 対応バージョン |
---|---|---|
swap |
2つのオブジェクトを入れ替える | C++11 |
名前 | 説明 | 対応バージョン |
---|---|---|
char_type |
テンプレート仮引数CharT |
|
int_type |
Traits::int_type |
|
pos_type |
Traits::pos_type |
|
off_type |
Traits::off_type |
|
traits_type |
テンプレート仮引数Traits |