class which save a stream state and restore it at dtor time More...
#include <stream_util.h>
Public Member Functions | |
| io_state (std::ios &stream) | |
| save the stream flags, precision and fill char. | |
| ~io_state () | |
| restore the stream state | |
class which save a stream state and restore it at dtor time
| io_state::io_state | ( | std::ios & | stream | ) |
save the stream flags, precision and fill char.
width is restored at end of expression, there is no need to save it. tie and locale are not saved currently
error state shouldn't be saved.
| io_state::~io_state | ( | ) |
restore the stream state
1.6.1