Cpp Standard Library 简明教程
C++ Library - <ostream>
Parameters
-
charT − Character type.
-
traits − 字符特性类,用于定义流对象所用字符的基本特性。
Member types
Sr.No. |
Member types |
Definition |
1 |
用于指示事件类型的类型 |
|
2 |
Event callback function type |
|
3 |
流异常的基类 |
|
4 |
流格式标志的类型 |
|
5 |
Initialize standard stream objects |
|
6 |
流状态标志的类型 |
|
7 |
流打开模式标志的类型 |
|
8 |
流搜索方向标志的类型 |
|
9 |
用于准备输入流 |
|
10 |
用于准备输出流 |
Public member functions
Sr.No. |
Member Functions |
Definition |
1 |
用于获取字符数 |
|
2 |
用于获取字符 |
|
3 |
用于获取行 |
|
4 |
用于提取和丢弃字符 |
|
5 |
用于窥视下一个字符 |
|
6 |
用于读取数据块 |
|
7 |
用于读取缓冲区中可用的数据 |
|
8 |
用于将字符放回 |
|
9 |
用于丢弃字符 |
Protected member functions
Sr.No. |
Member Functions |
Definition |
1 |
[role="bare"]../cpp_standard_library/cpp_basic_ios_operator_equal.html |
用于移动赋值 |
2 |
用于交换内部参数 |
Public member functions inherited from basic_ios
Sr.No. |
Member types |
Definition |
1 |
用于检查流的状态是否良好 |
|
2 |
用于检查 eofbit 是否设置 |
|
3 |
用于检查 failbit 或 badbit 是否设置 |
|
4 |
用于检查 badbit 是否设置 |
|
5 |
Evaluate stream |
|
6 |
用于获取错误状态标志 |
|
7 |
用于设置错误状态标志 |
|
8 |
用于设置错误状态标志 |
|
9 |
Get/set fill character |
|
10 |
用于获取/设置异常掩码 |
|
11 |
Imbue locale |
|
12 |
用于获取/设置绑定的流 |
|
13 |
用于获取/设置流缓冲区 |
|
14 |
Narrow character |
|
15 |
Widen character |