std::basic_ios::copyfmt
From cppreference.com
basic_ios& copyfmt(const basic_ios& other); |
||
Copies the formatting flags from stream other. This is done in the following sequence:
1) Calls callbacks, registered by register_callback() passing erase_event as parameter
2) Copies the formatting information from other to *this. Internal data array is also copied. rdstate() is left unchanged.
3) Calls callbacks, registered by register_callback() passing copyfmt_event as parameter
4) Copies the exception mask from other to *this.
Sets the stream error flags state in addition to currently set flags. Essentially calls clear(rdstate() | state). May throw an exception.
[edit] Parameters
other | - | another stream to use as source |
[edit] Return value
*this
[edit] Example
This section is incomplete Reason: no example |