BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslim::FormatGuard Class Reference

#include <bslim_formatguard.h>

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 bslim_formatguard

Constructor & Destructor Documentation

◆ 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: