<istream> <iostream>

std::wiostream

typedef basic_iostream<wchar_t> wiostream;
Input/output stream (wide)

This is an instantiation of basic_iostream with the following template parameters
模板引數定義註釋
charTwchar_t別名為成員 char_type
特性 (traits)char_traits<wchar_t>別名為成員 traits_type

This class inherits all members from its two parent classes wistream and wostream, thus being able to perform both input and output operations.

The class relies on a single wstreambuf object for both the input and output operations.

Objects of these classes keep a set of internal fields inherited from ios_base and wios

欄位成員函式描述
格式化格式標誌標誌
setf
unsetf
一組影響某些輸入/輸出操作如何被解釋或生成的內部標誌。
參見成員型別 fmtflags
欄位寬度寬度要插入的下一個格式化元素的寬度。
顯示精度precision下一個插入的浮點值的小數精度。
localegetloc
imbue
函式用於受本地化屬性影響的格式化輸入/輸出操作的 locale 物件。
填充字元fill用於將格式化欄位填充到欄位寬度width)的字元。
狀態錯誤狀態rdstate
setstate
clear
流的當前錯誤狀態。
可以透過呼叫 goodeoffailbad 來獲取單個值。
參見成員型別 iostate
異常掩碼exceptions會為其丟擲 failure 異常的狀態標誌。
參見成員型別 iostate
其他回撥棧register_callback指向在某些事件發生時被呼叫的函式的指標棧。
可擴充套件陣列iword
pword
xalloc
用於儲存 longvoid* 型別物件的內部陣列。
繫結流tie指向輸出流的指標,該流在此流的每次 I/O 操作前被重新整理。
流緩衝區rdbufPointer to the associated wstreambuf object, which is charge of all input/output operations.

成員型別

Member types char_type, traits_type, int_type, pos_type and off_type are ambiguous (multiple inheritance).
該類聲明瞭以下成員型別
成員型別定義
char_typewchar_t
traits_typechar_traits<wchar_t>
int_typewint_t
pos_typewstreampos
off_typestreamoff

These member types inherited from its base classes (wistream, wostream and ios_base)

公開成員函式

Note: This section links to the references for members of its basic template (basic_iostream).


受保護成員函式


Public member functions inherited from wistream

格式化輸入:

wostream 繼承的公共成員函式

格式化輸入:

wios 繼承的公共成員函式


ios_base 繼承的公開成員函式