名前空間
変種
操作

std::ios_base::openmode

提供: cppreference.com
< cpp‎ | io‎ | ios base
 
 
 
 
typedef/*implementation defined*/ openmode;
staticconstexpr openmode app =/*implementation defined*/

staticconstexpr openmode binary =/*implementation defined*/
staticconstexpr openmode in =/*implementation defined*/
staticconstexpr openmode out =/*implementation defined*/
staticconstexpr openmode trunc =/*implementation defined*/

staticconstexpr openmode ate =/*implementation defined*/

利用可能なファイルオープンフラグを規定します。 これは BitmaskType であり、以下の定数が定義されます。

定数 説明
app 各書き込み前にストリームの終端へシークします
binaryバイナリモードで開きます
in 読み込み用に開きます
out 書き込み用に開きます
trunc 開くときにストリームの内容を破棄します
ate 開いた直後にストリームの終端へシークします

[編集]

[編集]関連項目

ファイルを開き、それを文字シーケンスとして紐付けます
(std::basic_filebuf<CharT,Traits>のパブリックメンバ関数)[edit]
basic_stringbuf オブジェクトを構築します
(std::basic_stringbuf<CharT,Traits,Allocator>のパブリックメンバ関数)[edit]
close