mongoutils::str::stream Class Reference

#include <str.h>

List of all members.

Public Member Functions

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

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();

Definition at line 48 of file str.h.


Member Function Documentation

mongoutils::str::stream::operator std::string (  )  const [inline]

Definition at line 58 of file str.h.

template<class T >
stream& mongoutils::str::stream::operator<< ( const T &  v  )  [inline]

Definition at line 53 of file str.h.


Member Data Documentation

Definition at line 50 of file str.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:59 2013