Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.33 KB

File metadata and controls

55 lines (41 loc) · 1.33 KB

INTPTR_MIN

  • cstdint[meta header]
  • macro[meta id-type]
  • cpp11[meta cpp]
#define INTPTR_MIN implementation-defined

概要

intptr_t の最小値。

ビット数16をNとして、このマクロの値は-(2N-1 - 1)以下となる。

備考

  • このマクロの定義有無
    • C++11 : このマクロを定義するかどうかは処理系定義である (intptr_tが定義される場合にのみ定義される)
    • C++29 : このマクロは必ず定義される

#include <iostream>
#include <cstdint>

int main()
{
  std::intptr_t min_value = INTPTR_MIN;
  std::cout << static_cast<long long>(min_value) << std::endl;
}
  • INTPTR_MIN[color ff0000]
  • std::intptr_t[link intptr_t.md]

出力例

-9223372036854775808

バージョン

言語

  • C++11

処理系

参照