template <class charT, class traits = char_traits<charT> > class basic_ios;
欄位 | 成員函式 | 描述 | |
---|---|---|---|
格式化 | 填充字元 | fill | 用於將格式化欄位填充到欄位寬度(width)的字元。 |
狀態 | 錯誤狀態 | rdstate setstate clear | 流的當前錯誤狀態。 可以透過呼叫 good、eof、fail 和 bad 來獲取單個值。 參見成員型別 iostate。 |
異常掩碼 | exceptions | 會為其丟擲 failure 異常的狀態標誌。 參見成員型別 iostate。 | |
其他 | 繫結流 | tie | 指向輸出流的指標,該流在此流的每次 I/O 操作前被重新整理。 |
流緩衝區 | rdbuf | 指向關聯的 basic_streambuf 物件的指標,該物件負責所有輸入/輸出操作。 |
成員型別 | 定義 | 說明 |
---|---|---|
char_type | 第一個模板引數(charT) | |
traits_type | 第二個模板引數(traits) | 預設為:char_traits<charT> |
int_type | traits_type::int_type | |
pos_type | traits_type::pos_type | 通常與 streampos 相同 |
off_type | traits_type::off_type | 通常與 streamoff 相同 |