std::basic_ios::setstate
来自cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
void setstate( iostate state ); |
||
设置流的错误标志
state
除了目前设置标志。从本质上要求clear(rdstate() | state)。可能会抛出一个异常.Original:
Sets the stream error flags
state
in addition to currently set flags. Essentially calls clear(rdstate() | state). May throw an exception.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
state | - | 流错误状态标志设置。它可以是一个组合的以下常量:
Original: stream error state flags to set. It can be a combination of the following constants:
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
本节是不完整的 原因: no example |
[编辑] 另请参阅
返回状态标志 Original: returns state flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
清除错误和EOF标志 Original: clears error and eof flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) |