# 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
処理系
- Clang: 3.2 ✅
- GCC: 4.4 ✅
- ICC: ??
- Visual C++: 2010 ✅, 2012 ✅, 2013 ✅, 2015 ✅