std::basic_ios::copyfmt

来自cppreference.com

 
 
输入/输出库
I / O操纵
C-风格的I / O
缓冲区
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(过时了)
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
抽象
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
文件I / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
字符串I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
阵列的I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(过时了)
ostrstream(过时了)
strstream(过时了)
类型
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Error类的接口
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
std::basic_ios
成员函数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ios::basic_ios
basic_ios::~basic_ios
国家职能
Original:
State functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ios::good
basic_ios::eof
basic_ios::fail
basic_ios::bad
basic_ios::operator!
basic_ios::operator bool
basic_ios::rdstate
basic_ios::setstate
basic_ios::clear
格式化
Original:
Formatting
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ios::copyfmt
basic_ios::fill
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ios::exceptions
basic_ios::imbue
basic_ios::rdbuf
basic_ios::tie
basic_ios::narrow
basic_ios::widen
受保护的成员函数
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ios::init
basic_ios::move
basic_ios::swap
basic_ios::set_rdbuf
 
basic_ios& copyfmt(const basic_ios& other);
复制的的格式化标志从流other。这是在下面的序列:
Original:
Copies the formatting flags from stream other. This is done in the following sequence:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
呼叫回调,注册register_callback()erase_event作为参数传递
Original:
Calls callbacks, registered by register_callback() passing erase_event as parameter
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
复制的格式信息从other*this。内部数据数组也被复制。 rdstate()保持不变.
Original:
Copies the formatting information from other to *this. Internal data array is also copied. rdstate() is left unchanged.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
呼叫回调,注册register_callback()copyfmt_event作为参数传递
Original:
Calls callbacks, registered by register_callback() passing copyfmt_event as parameter
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
复制异常掩码从other*this.
Original:
Copies the exception mask from other to *this.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
设置流的错误标志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.

[编辑] 参数

other -
另一个流作为源使用
Original:
another stream to use as source
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 返回值

*this

[编辑] 为例