- cstdint[meta header]
- macro[meta id-type]
- cpp11[meta cpp]
# define INTPTR_MAX implementation-defined
intptr_t
の最大値。
ビット数16をNとして、このマクロの値は2N-1 - 1以上となる。
#include <iostream>
#include <cstdint>
int main()
{
std::intptr_t max_value = INTPTR_MAX;
std::cout << static_cast<long long>(max_value) << std::endl;
}
- INTPTR_MAX[color ff0000]
- std::intptr_t[link intptr_t.md]
9223372036854775807
- C++11
- Clang: 3.2 [mark verified]
- GCC: 4.4 [mark verified]
- ICC: ??
- Visual C++: ??