首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::basic_streambuf::uflow

virtual int_type uflow();

?

?

如果需要%29,则通过更新指向输入区域%28的指针,确保输入区域中至少有一个字符可用。如果成功,则返回该字符的值,并将获取指针只有一个角色。关于失败返回traits::eof()...

该功能可能更新gptr,,,egptreback指针定义新加载的数据%28(如果有%29)的位置。如果失败,该函数将确保gptr() == nullptrgptr() == egptr...

函数调用的基类版本underflow()和增量gptr()...

参数

%280%29

返回值

对象所指向的字符的值。获取指针在它被一个人推进之前,或者traits::eof()否则。

函数的基类版本返回underflow()...

公共职能std::streambuf只在下列情况下才调用此函数gptr() == nullptrgptr() >= egptr()...

不使用get区域且在basic中不设置get区域指针的自定义Streambuf类[医]要覆盖此函数,必须使用Streambuf。

另见

underflow virtual

reads characters from the associated input sequence to the get area (virtual protected member function)

overflow virtual

writes characters to the associated output sequence from the put area (virtual protected member function)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com