Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bslim::FormatGuard Class Reference

#include <bslim_formatguard.h>

List of all members.

Public Member Functions

template<class CHAR_TYPE , class CHAR_TRAITS >
 FormatGuard (bsl::basic_ostream< CHAR_TYPE, CHAR_TRAITS > *stream)
 ~FormatGuard ()

Detailed Description

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


Constructor & Destructor Documentation

template<class CHAR_TYPE , class CHAR_TRAITS >
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.


The documentation for this class was generated from the following file: