This class implements a guard that saves the state of a basic_ostream and restores that state upon destruction of the guard.

Synopsis

Declared in <bslim_formatguard.h>

class FormatGuard;

Member Functions

Name

Description

FormatGuard [constructor]

Create a FormatGuard object saving the state of the specified stream.

~FormatGuard [destructor]

Restore all the saved state to the stream that was passed to the constructor.

Created with MrDocs