std::feupdateenv(3)
std::feupdateenv(3) π
okay bestie, welcome to the std::feupdateenv page from the C++ Standard Libary β yes, that's the manual name, typo and all, not me π. This is the C++ standard library glow-up of the floating-point environment vibe check.
π NAME π
std::feupdateenv - std::feupdateenv
Literally the name twice. Iconic. No notes.
πΈ Synopsis πΈ
Defined in header <cfenv>
int feupdateenv( const std::fenv_t* envp ) (since C++11)
So here's the sequence, and it matters: first, std::feupdateenv remembers the floating-point exceptions that are currently raised. Then it restores the floating-point environment from the object pointed to by envp β similar to std::fesetenv. Then it raises the floating-point exceptions that were saved. Full little relay race, periodt.
This function may be used to end the non-stop mode established by an earlier call to std::feholdexcept. iykyk β¨
π Parameters π
envpβ pointer to the object of typestd::fenv_tset by an earlier call tostd::feholdexceptorstd::fegetenv, or equal toFE_DFL_ENV. <butterfly>That's the whole parameter, bestie, and every option for where it can come from is right there.</butterfly>
π¦ Return value π¦
0 on success, non-zero otherwise. Short, sweet, and absolutely not going to elaborate further.
β See also β
feholdexcept(C++11)β saves the environment, clears all status flags and ignores all future errors(function)fegetenv(C++11)β saves or restores the current floating-point environment(function)fesetenv(C++11)β saves or restores the current floating-point environment(function)FE_DFL_ENV(C++11)β default floating-point environment(macro constant)- C documentation for
feupdateenv
mwah π source: http://cppreference.com Β· version/date: 2024.06.10 Β· std::feupdateenv(3) β byeee, go restore that environment responsibly π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms