GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — UINTMAX_WIDTH - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. cstdint
  3. UINTMAX_WIDTH

最終更新日時: 2026年06月15日 14時22分22秒 (JST)
Akira Takahashi が更新

履歴 編集

macro
<cstdint>

UINTMAX_WIDTH(C++26)

#define UINTMAX_WIDTH implementation-defined

概要

uintmax_t型の幅 (値ビット数) を表す。#ifなどのプリプロセッサディレクティブで使用できる。

幅 (width) とは、その型が値の表現に使用するビット数であり、符号付き整数型では符号ビットを含む。パディングビットを含むストレージサイズ (sizeof × CHAR_BIT) とは異なる場合がある。

C23で<stdint.h>に追加されたマクロであり、C++26で<cstdint>に取り込まれた。

例

#include <cstdint>
#include <iostream>

int main()
{
  std::cout << UINTMAX_WIDTH << '\n';
}

出力例

64

バージョン

言語

  • C++26

処理系

  • Clang: 23 ✅
  • GCC: 17 ✅
  • Visual C++: 2026 Update 2 ❌

参照

  • P3348R4 C++26 should refer to C23 not C17
    • C++26がC23を参照するようになり、このマクロが<cstdint>に追加された
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.