Public Member Functions | Private Attributes | List of all members
cout_redirect Class Reference

Public Member Functions

 cout_redirect (std::streambuf *new_buf)
 
 ~cout_redirect ()
 

Private Attributes

std::streambuf * old_buf
 

Detailed Description

Definition at line 17 of file map_vector_test.cc.

Constructor & Destructor Documentation

cout_redirect::cout_redirect ( std::streambuf *  new_buf)
inline

Definition at line 19 of file map_vector_test.cc.

19 : old_buf(std::cout.rdbuf(new_buf)) {}
std::streambuf * old_buf
cout_redirect::~cout_redirect ( )
inline

Definition at line 21 of file map_vector_test.cc.

21 { std::cout.rdbuf(old_buf); }
std::streambuf * old_buf

Member Data Documentation

std::streambuf* cout_redirect::old_buf
private

Definition at line 24 of file map_vector_test.cc.


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