Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

stream2string.h File Reference

Declares an adapter that converts something that can be inserted into a C++ stream into a string type. More...

#include <sstream>

Include dependency graph for stream2string.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  mysqlpp

Functions

template<class Strng, class T>
Strng stream2string (const T &object)
 Converts a stream-able object to any type that can be initialized from an std::string.


Detailed Description

Declares an adapter that converts something that can be inserted into a C++ stream into a string type.


Function Documentation

template<class Strng, class T>
Strng stream2string const T &  object  ) 
 

Converts a stream-able object to any type that can be initialized from an std::string.

This adapter takes any object that has an out_stream() member function and converts it to a string type. An example of such a type within the library is mysqlpp::Date.


Generated on Tue Aug 16 12:53:52 2005 for MySQL++ by  doxygen 1.3.9.1