Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |header
       
       
      Standard library headers
       

      This header was originally in the C standard library (<stdckdint.h>).

      This header is part of thenumeric library, in particular, it provides several function templates forchecked integer arithmetic.

      It is unspecified whether<stdckdint.h> provides any declarations in namespacestd.

      Functions

      (C++26)
      checked addition operation on two integers
      (function template)[edit]
      (C++26)
      checked subtraction operation on two integers
      (function template)[edit]
      (C++26)
      checked multiplication operation on two integers
      (function template)[edit]

      [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);
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/header/stdckdint.h&oldid=181976"

      [8]ページ先頭

      ©2009-2025 Movatter.jp