Standard library header <stdckdint.h> (C++26) (original) (raw)
This header was originally in the C standard library (<stdckdint.h>).
This header is part of the numeric library, in particular, it provides several function templates for checked integer arithmetic.
It is unspecified whether <stdckdint.h> provides any declarations in namespace std.
Functions |
---|
[edit] Synopsis
#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);