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

std::feupdateenv

Defined in header <cfenv>

int feupdateenv( const std::fenv_t* envp )

(since C++11)

首先,记住当前引发的浮点异常,然后从envp%28类似于std::fesetenv%29,然后引发保存的浮点异常。

此函数可用于结束先前调用std::feholdexcept...

参数

envp

-

pointer to the object of type std::fenv_t set by an earlier call to std::feholdexcept or std::fegetenv or equal to FE_DFL_ENV

返回值

​0​在成功的时候,不是零,否则。

另见

feholdexcept (C++11)

saves the environment, clears all status flags and ignores all future errors (function)

fegetenvfesetenv (C++11)

saves or restores the current floating point environment (function)

FE_DFL_ENV (C++11)

default floating-point environment (macro constant)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券