Quick Links: |
#include <bslim_formatguard.h>
Public Member Functions | |
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 Component bslim_formatguard
bslim::FormatGuard::FormatGuard | ( | bsl::basic_ostream< CHAR_TYPE, CHAR_TRAITS > * | stream | ) | [inline, explicit] |
Create a FormatGuard
object saving the state of the specified stream
.
References BSLMF_ASSERT().
bslim::FormatGuard::~FormatGuard | ( | ) | [inline] |
Restore all the saved state to the stream that was passed to the constructor.