標準庫標頭檔案 <stdckdint.h> (C23)
來自 cppreference.com
此標頭檔案是數值庫的一部分,特別是它提供了用於有檢查的整數算術的型別泛型宏。
函式 | |
(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);