stringstream data; data<< "foo" << 123 << "bar" ; doSomething( data.str() );
doSomething( StringBuilder( "foo" ) << 123 << "bar" );