MongoDB  2.7.0
Public Member Functions | Public Attributes | List of all members
mongoutils::str::stream Class Reference

the idea here is to make one liners easy. More...

#include <str.h>

Public Member Functions

template<class T >
streamoperator<< (const T &v)
 
 operator std::string () const
 

Public Attributes

mongo::StringBuilder ss
 

Detailed Description

the idea here is to make one liners easy.

e.g.:

return str::stream() << 1 << ' ' << 2;

since the following doesn't work:

(stringstream() << 1).str();


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