Standard library header <stdckdint.h> (C++26)
From cppreference.net
C++
Standard library headers
このヘッダーは元々C標準ライブラリに含まれていました( <stdckdint.h> )。
このヘッダは numeric ライブラリの一部であり、特に checked integer arithmetic のためのいくつかの関数テンプレートを提供します。
<stdckdint.h> が名前空間 std 内で何らかの宣言を提供するかどうかは未規定です。
関数 |
|
|
(C++26)
|
2つの整数に対するチェック付き加算演算
(関数テンプレート) |
|
(C++26)
|
2つの整数に対するチェック付き減算演算
(関数テンプレート) |
|
(C++26)
|
2つの整数に対するチェック付き乗算演算
(関数テンプレート) |
概要
#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);