最終更新日時(UTC):
が更新

履歴 編集

macro
<cstdint>

UINT64_MAX(C++11)

# define UINT64_MAX implementation-defined

概要

uint64_t の最大値を表す定数。

ビット数64をNとして、このマクロの値は2N - 1である18446744073709551615となる。

その値の型は、uint64_tを整数昇格したものとなる。

なお、このマクロは uint64_t が定義されていない場合には定義されない。

#include <iostream>
#include <cstdint>

int main()
{
  std::cout << UINT64_MAX << std::endl;
}

出力

18446744073709551615

バージョン

言語

  • C++11

処理系