Namespaces
Variants

Standard library header <stdckdint.h> (C++26)

From cppreference.net
Standard library headers

이 헤더는 원래 C 표준 라이브러리에 있었습니다 ( <stdckdint.h> ).

이 헤더는 numeric 라이브러리의 일부로, 특히 checked integer arithmetic 를 위한 여러 함수 템플릿을 제공합니다.

<stdckdint.h> 헤더가 네임스페이스 std 에 어떤 선언을 제공하는지는 명시되어 있지 않습니다.

함수

(C++26)
두 정수에 대한 검증된 덧셈 연산
(함수 템플릿)
(C++26)
두 정수에 대한 검증된 뺄셈 연산
(함수 템플릿)
(C++26)
두 정수에 대한 검증된 곱셈 연산
(함수 템플릿)

시놉시스

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