basic_streambuf::setp

首先存储指针 _Pbeg 和 _Pend 在输出缓冲区结尾指针的受保护的函数。

void setp( 
   char_type *_Pbeg, 
   char_type *_Pend 
);

参数

  • _Pbeg
    该缓冲区的开头的指针。

  • _Pend
    与缓冲区末尾的指针。

要求

页眉: <streambuf>

命名空间: std

请参见

参考

basic_streambuf 类

iostream 编程

iostreams 约定