Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1001 Bytes

File metadata and controls

39 lines (28 loc) · 1001 Bytes

uintptr_t

  • cstdint[meta header]
  • std[meta namespace]
  • type-alias[meta id-type]
  • cpp11[meta cpp]
namespace std {
  using uintptr_t = unsigned-integer-type;
}
  • unsigned-integer-type[italic]

概要

ポインタサイズの符号なし整数型。

この型を実装するかどうかは処理系定義。

この型は、以下の動作が保証される:

  1. 有効なvoidへのポインタからuintptr_t型への変換
  2. uintptr_t型のポインタ値からvoidへのポインタへの逆変換
  3. 変換前と逆変換のポインタ値が等値となる

コード例は、intptr_tを参照。

バージョン

言語

  • C++11

処理系