Namespaces
Variants

Standard library header <stdckdint.h> (C23)

From cppreference.net

이 헤더는 numeric 라이브러리의 일부로, 특히 type-generic macros 를 제공하여 checked integer arithmetic 을 지원합니다.

함수

(C23)
두 정수에 대한 검사된 덧셈 연산
(타입-제네릭 함수 매크로)
(C23)
두 정수에 대한 검사된 뺄셈 연산
(타입-제네릭 함수 매크로)
(C23)
두 정수에 대한 검사된 곱셈 연산
(타입-제네릭 함수 매크로)

시놉시스

#define __STDC_VERSION_STDCKDINT_H__ 202311L
bool ckd_add(/*type1*/* result, /*type2*/ a, /*type3*/ b);
bool ckd_sub(/*type1*/* result, /*type2*/ a, /*type3*/ b);
bool ckd_mul(/*type1*/* result, /*type2*/ a, /*type3*/ b);