3 basic_ostringstream模板
basic_ostringstream模板支持写入basic_string对象,使用basic_stringbuf控制相关存储区域;
定义:
template < class charT, // basic_ostringstream::char_type
class traits = char_traits<charT>, // basic_ostringstream::traits_type
class Alloc = allocator<charT> // basic_ostringstream::allocator_type
> class basic_ostringstream;
3.1 basic_ostringstream构造函数
//default (1)