duration_style i/o saver. More...
#include <duration_io.hpp>
Public Types | |
typedef std::ios_base | state_type |
the type of the state to restore More... | |
typedef duration_style | aspect_type |
the type of aspect to save More... | |
Public Member Functions | |
duration_style_io_saver (state_type &s) | |
Explicit construction from an i/o stream. More... | |
duration_style_io_saver (state_type &s, aspect_type new_value) | |
Construction from an i/o stream and a duration_style to restore. More... | |
~duration_style_io_saver () | |
Destructor. More... | |
void | restore () |
Restores the i/o stream with the duration_style to be restored. More... | |
duration_style i/o saver.
See Boost.IO i/o state savers for a motivating compression.
typedef duration_style boost::chrono::duration_style_io_saver::aspect_type |
the type of aspect to save
typedef std::ios_base boost::chrono::duration_style_io_saver::state_type |
the type of the state to restore
|
inlineexplicit |
Explicit construction from an i/o stream.
Store a reference to the i/o stream and the value of the associated duration_style
.
References boost::chrono::get_duration_style().
|
inline |
Construction from an i/o stream and a duration_style
to restore.
Stores a reference to the i/o stream and the value duration_style
to restore given as parameter.
|
inline |
|
inline |
Restores the i/o stream with the duration_style to be restored.
References boost::chrono::set_duration_style().
Referenced by ~duration_style_io_saver().