timezone_io_saver i/o saver. More...
#include <time_point_io.hpp>
Public Types | |
| typedef std::ios_base | state_type |
| the type of the state to restore More... | |
| typedef timezone | aspect_type |
| the type of aspect to save More... | |
Public Member Functions | |
| timezone_io_saver (state_type &s) | |
| Explicit construction from an i/o stream. More... | |
| timezone_io_saver (state_type &s, aspect_type new_value) | |
Construction from an i/o stream and a timezone to restore. More... | |
| ~timezone_io_saver () | |
| Destructor. More... | |
| void | restore () |
| Restores the i/o stream with the timezone to be restored. More... | |
timezone_io_saver i/o saver.
See Boost.IO i/o state savers for a motivating compression.
| typedef timezone boost::chrono::timezone_io_saver::aspect_type |
the type of aspect to save
| typedef std::ios_base boost::chrono::timezone_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 timezone.
|
inline |
Construction from an i/o stream and a timezone to restore.
Stores a reference to the i/o stream and the value new_value to restore given as parameter.
|
inline |
|
inline |
Restores the i/o stream with the timezone to be restored.
References boost::chrono::set_timezone().
Referenced by ~timezone_io_saver().