#include <bslim_formatguard.h>
|
template<class CHAR_TYPE , class CHAR_TRAITS > |
| FormatGuard (bsl::basic_ostream< CHAR_TYPE, CHAR_TRAITS > *stream) |
|
| ~FormatGuard () |
|
This class implements a guard that saves the state of a basic_ostream and restores that state upon destruction of the guard.
See bslim_formatguard
◆ FormatGuard()
template<class CHAR_TYPE , class CHAR_TRAITS >
bslim::FormatGuard::FormatGuard |
( |
bsl::basic_ostream< CHAR_TYPE, CHAR_TRAITS > * |
stream | ) |
|
|
inlineexplicit |
Create a FormatGuard
object saving the state of the specified stream
.
◆ ~FormatGuard()
bslim::FormatGuard::~FormatGuard |
( |
| ) |
|
|
inline |
Restore all the saved state to the stream that was passed to the constructor.
The documentation for this class was generated from the following file: