|
libzypp
9.1.2
|
Convenient building of std::string via std::ostream::operator<<. More...
#include <String.h>
Public Member Functions | |
| template<class _Tp > | |
| Str & | operator<< (const _Tp &val) |
| operator std::string () const | |
Public Attributes | |
| std::ostringstream | _str |
Convenient building of std::string via std::ostream::operator<<.
Basically this is an ostringstream which is autocenvertible into a string.
void fnc( const std::string & txt_r ); fnc( str::Str() << "Hello " << 13 ); std::string txt( str::Str() << 45 );
| Str& zypp::str::Str::operator<< | ( | const _Tp & | val | ) | [inline] |
| zypp::str::Str::operator std::string | ( | ) | const [inline] |
| std::ostringstream zypp::str::Str::_str |
Definition at line 185 of file String.h.
Referenced by operator std::string(), and operator<<().
1.7.6.1