std:: feupdateenv
From cppreference.net
C++
Numerics library
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Floating-point environment
| Functions | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
(C++11)
|
||||
|
(C++11)
(C++11)
|
||||
|
(C++11)
(C++11)
|
||||
|
(C++11)
|
||||
|
feupdateenv
(C++11)
|
||||
| Macro constants | ||||
|
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
|
||||
|
(C++11)
(C++11)
(C++11)
(C++11)
|
||||
|
(C++11)
|
|
헤더 파일에 정의됨
<cfenv>
|
||
|
int
feupdateenv
(
const
std::
fenv_t
*
envp
)
|
(C++11 이후) | |
먼저, 현재 발생한 부동 소수점 예외들을 기억한 다음,
envp
가 가리키는 객체로부터 부동 소수점 환경을 복원합니다(
std::fesetenv
와 유사). 그런 다음 저장되었던 부동 소수점 예외들을 발생시킵니다.
이 함수는 이전에 호출된 std::feholdexcept 에 의해 설정된 논스톱 모드를 종료하는 데 사용될 수 있습니다.
매개변수
| envp | - |
std::
fenv_t
타입의 객체를 가리키는 포인터로,
std::feholdexcept
또는
std::fegetenv
호출을 통해 설정되었거나
FE_DFL_ENV
와 동일함
|
반환값
0 성공 시 0, 그렇지 않으면 0이 아닌 값.
참고 항목
|
(C++11)
|
환경을 저장하고, 모든 상태 플래그를 지우며 향후 모든 오류를 무시합니다
(함수) |
|
(C++11)
|
현재 부동 소수점 환경을 저장하거나 복원합니다
(함수) |
|
(C++11)
|
기본 부동 소수점 환경
(매크로 상수) |
|
C 문서
for
feupdateenv
|
|