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