basic_stringbuf::allocator_type 显示另外 15 个 描述对Elem类型的元素(其字符特征由类Tr确定)与数组对象中存储的元素序列之间的来回传输进行控制的流缓冲区。 语法 C++复制 template<classElem,classTr=char_traits<Elem>,classAlloc=allocator<Elem>>classbasic_stringbuf:publicbasic_streambuf<Elem, Tr> ...
> class basic_stringbuf : public std::basic_streambuf<CharT, Traits> std::basic_stringbuf 是关联字符序列为内存常驻的任意字符序列的 std::basic_streambuf 。能从 std::basic_string 的实例初始化它,或将它做成该类的实例。 std::basic_stringbuf 的典型实现保有一个 std::basic_string 类型对象,或...
4%29移动-构造一个std::basic_stringbuf通过将所有状态从另一个状态移出来创建std::basic_stringbuf对象rhs,包括关联的字符串、打开模式、区域设置和所有其他状态。在移动之后,std::basic_streambuf在*this中的相应指针-rhs除非是零。 参数 new_str -
basic_stringbuf( ios_base::openmode _Mode = ios_base::in | ios_base::out ); basic_stringbuf( const basic_string<Elem, Tr, Alloc>& _Str, ios_base::openmode _Mode = ios_base::in | ios_base::out ); 参数 _Mode 一个ios_base::openmode的枚举。 _Str basic_string类型对象。 备注...
std::basic_stringbuf::setbuf protected: virtual std::basic_streambuf<CharT, Traits>* setbuf( char_type* s, std::streamsize n ) 如果s为空指针,并且n为零,此函数不起任何作用。 否则,效果就是实现定义的:一些实现什么也不做,而一些实现清除std::string成员当前用作缓冲区,并开始使用用户...
std::basic_stringbuf<CharT,Traits,Allocator>::overflowC++ 输入/输出库 std::basic_stringbuf protected: virtual int_type overflow ( int_type c = Traits::eof() );后附字符 c 到输出字符序列。 若c 为文件尾指示器( traits::eq_int_type(c,traits::eof()) == true),则不后附字符。函数不做...
basic_stringbuf::allocator_type Show 15 more Describes a stream buffer that controls the transmission of elements of typeElem, whose character traits are determined by the classTr, to and from a sequence of elements stored in an array object. ...
:publicstd::basic_streambuf<CharT, Traits> std::basic_stringbuf是关联字符序列为内存常驻的任意字符序列的std::basic_streambuf。能从std::basic_string的实例初始化它,或将它做成std::basic_string的实例。 std::basic_stringbuf的典型实现保有一个std::basic_string类型的对象,或等价的可伸缩序列容器作为数据...
返回选件类basic_string<Elem,Tr,控件序列为的副本顺序控件由*this的Alloc**>,** 对象。 备注 第一个成员函数返回选件类basic_string<Elem,Tr,Alloc>对象,控件序列为的副本顺序控件由*this。复制的顺序取决于存储的stringbuf模式: 如果mode & ios_base::out不为零,并输出区域存在,顺序是整个输出区域(epptr-从...
An object of class basic_stringbuf<Elem, Tr, Alloc> stores a copy of theios_base::openmodeargument from its constructor as itsstringbufmodemode: If mode & ios_base::in is nonzero, the input buffer is accessible. For more information, seebasic_streambuf Class. ...